UseLogger sets the 'Current' package level logger variable to the specified value. This variable is used in all Trace/Debug/... package level convenience funcs.
will be equal to
IMPORTANT: UseLogger do NOT close the previous logger (only flushes it). So if you constantly use it to replace loggers and don't close them in other code, you'll end up having memory leaks.
To safely replace loggers, use ReplaceLogger.
UseLogger is referenced in 4 repositoriesgithub.com/cihub/seelog-examples
- 3 references in types_main.go
- 1 reference in main.go
- 1 reference in logging/log.go