log

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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.

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

func InitFileLogger(config settings.Logging)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL