log

package
Version: v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup()

Shutdown the logging backend.

func Init

func Init(config *Config) error

Initialize the logging backend. Colored output is disabled since it isn't supported on all platforms and because it will cause problems when redirecting log output to a file.

Types

type Config

type Config struct {
	Debug   bool   `json:"debug"`
	Logfile string `json:"logfile"`
}

Configuration for logging.

Jump to

Keyboard shortcuts

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