Wrap wraps the provided LogFuncs into a single Func.
(fs ...Func)
| 40 | |
| 41 | // Wrap wraps the provided LogFuncs into a single Func. |
| 42 | func Wrap(fs ...Func) Func { |
| 43 | return func(l Level, msg string, args ...any) { |
| 44 | for _, f := range fs { |
| 45 | f(l, msg, args...) |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // Writer returns an io.Writer that logs all writes in a separate goroutine. |
| 51 | // It is the responsibility of the caller to call the returned |