logging - Golang juju/logger does not log the actual line in the log file -


i'm using juju/logger in golang application logging. have configured logger log error,info , trace example:

filelog.go ----------- func (obj filelog) infof(format string, args ...interface{}) {     log.logger.infof(format, args) } 

and when called, logger file shows line number of filelog.go logger defined , not actual location logger called. i'm calling filelog

log.logger().infof("invalid data passed" + err.error()) 

is there param configured log line number of actual caller function? please help.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -