StdLogger is what your logrus-enabled library should take, that way it'll accept a stdlib logger ([log.Logger]) and a logrus logger. There's no standard interface, so this is the closest we get, unfortunately.
| 124 | // it'll accept a stdlib logger ([log.Logger]) and a logrus logger. |
| 125 | // There's no standard interface, so this is the closest we get, unfortunately. |
| 126 | type StdLogger interface { |
| 127 | Print(...interface{}) |
| 128 | Printf(string, ...interface{}) |
| 129 | Println(...interface{}) |
| 130 | |
| 131 | Fatal(...interface{}) |
| 132 | Fatalf(string, ...interface{}) |
| 133 | Fatalln(...interface{}) |
| 134 | |
| 135 | Panic(...interface{}) |
| 136 | Panicf(string, ...interface{}) |
| 137 | Panicln(...interface{}) |
| 138 | } |
| 139 | |
| 140 | // FieldLogger extends the [StdLogger] interface, generalizing |
| 141 | // the [Entry] and [Logger] types. |
no outgoing calls
no test coverage detected