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
Post a Comment