jBugman / stdlogrus

Forward std logger to logrus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stdlogrus

Package provides some glue for using logrus from std logger. Main use case is ability to use logrus with net/http.ReverseProxy which accepts hardcoded std Logger struct.

It is based on code from sirupsen/logrus#118 (comment)

Basic setup is just call in main:

stdlogrus.Setup()

About

Forward std logger to logrus

License:MIT License


Languages

Language:Go 100.0%