L returns the global Logger, which can be reconfigured with ReplaceGlobals. It's safe for concurrent use.
()
| 46 | // L returns the global Logger, which can be reconfigured with ReplaceGlobals. |
| 47 | // It's safe for concurrent use. |
| 48 | func L() *Logger { |
| 49 | _globalMu.RLock() |
| 50 | l := _globalL |
| 51 | _globalMu.RUnlock() |
| 52 | return l |
| 53 | } |
| 54 | |
| 55 | // S returns the global SugaredLogger, which can be reconfigured with |
| 56 | // ReplaceGlobals. It's safe for concurrent use. |
no outgoing calls