Invalid line details when I use %l as layout pattren
lakshmansakhileti opened this issue · comments
My logger Configuration
logger := log.Logger()
logger.SetLevel(log.Stol("DEBUG")
appender := appenders.RollingFile("sample.log", true)
appender.MaxFileSize = 1024
appender.SetLayout(layout.Pattern("%p %l %m "))
logger.SetAppender(appender)
Logger Usage sample code
18 func main() {
19 logger := logging.GetLogger()
20 logger.Debug("Reading configuration file")
It is showing incorrect details
DEBUG appenders/rollingfile.go:51 Reading configuration file
It should display as follows
DEBUG appenders/main.go:20 Reading configuration file