Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Console zap.SugaredLogger
Console writes to stderr, in human format. Direct usage of it is intended for errors initializing stuff from cli arguments, or reading the config. In non daemon mode, logs will be forked to this logger.
View Source
var Logger zap.SugaredLogger
Logger is the general logger. In daemon mode, the only logger.
Functions ¶
func InitConsoleLogger ¶
func InitConsoleLogger()
InitConsoleLogger initializes the logger that wrotes to stderr.
func InitFileLogger ¶
InitFileLogger initializes the logger that wrotes to disk. It should be called with console logger already initialized.
func InitLoggerForTests ¶
func InitLoggerForTests()
InitLoggerForTests initializes logger for tests. It should be called for those tests that might trigger logs to be written.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.