( debugFunc LogFunc, infoFunc LogFunc, warnFunc LogFunc, errorFunc LogFunc, timerBeginFn LogTimerBeginFunc, timerEndFn LogTimerEndFunc)
| 171 | type LogTimerEndFunc func(ctx context.Context, key string) |
| 172 | |
| 173 | func InitLogging( |
| 174 | debugFunc LogFunc, |
| 175 | infoFunc LogFunc, |
| 176 | warnFunc LogFunc, |
| 177 | errorFunc LogFunc, |
| 178 | timerBeginFn LogTimerBeginFunc, |
| 179 | timerEndFn LogTimerEndFunc) { |
| 180 | debugEnvInit() |
| 181 | debugLoggerFunc = debugFunc |
| 182 | infoLoggerFunc = infoFunc |
| 183 | warnLoggerFunc = warnFunc |
| 184 | errorLoggerFunc = errorFunc |
| 185 | timerBeginFunc = timerBeginFn |
| 186 | timerEndFunc = timerEndFn |
| 187 | } |
| 188 | |
| 189 | // Default logger for notelib |
| 190 | var ( |