x-cray / logrus-prefixed-formatter

Logrus Prefixed Log Formatter
MIT License
199 stars 107 forks source link

Log file and line #11

Open stgleb opened 7 years ago

stgleb commented 7 years ago

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 ?

x-cray commented 7 years ago

@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.