logrus-prefixed-formatter icon indicating copy to clipboard operation
logrus-prefixed-formatter copied to clipboard

Log file and line

Open stgleb opened this issue 7 years ago • 1 comments

Is therere any possibility to log file and line like

Info = log.New(infoHandle,
        "INFO: ",
        log.Ldate|log.Ltime|log.Lshortfile)

In standard package log ?

stgleb avatar Apr 04 '17 08:04 stgleb

@stgleb No, currently it's not possible with the formatter. Apparently, there's a feature request in logrus. And I'd like to monitor that issue prior to implementing of this feature in formatter. PR is appreciated, however.

x-cray avatar Apr 19 '17 23:04 x-cray