logger

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{}) string

Debug message logging.

func Error

func Error(args ...interface{}) string

Error message logging.

func FatalExit

func FatalExit(args ...interface{})

FatalExit logs an error and exists the process.

func Info

func Info(args ...interface{}) string

Info message logging.

func Pause

func Pause()

Pause logging.

func Raw

func Raw(message string)

Raw message logging.

func Resume

func Resume()

Resume logging (after pausing).

func Start

func Start(myServerEnable, debugEnable, silentEnable, nothingEnable bool)

Start logging.

func Stop

func Stop()

Stop logging.

func Trace

func Trace(args ...interface{}) string

Trace message logging.

func Warn

func Warn(args ...interface{}) string

Warn message logging.

Types

type LogMode

type LogMode int

LogMode allows to specify the verbosity of logging.

const (
	NormalMode  LogMode = iota
	DebugMode   LogMode = iota
	SilentMode  LogMode = iota
	TraceMode   LogMode = iota
	NothingMode LogMode = iota
)

Possible log modes.

var Mode LogMode

Mode is the current log mode in use.

type LogStrategy

type LogStrategy int

LogStrategy allows to specify a log rotation strategy.

const (
	NormalStrategy LogStrategy = iota
	DailyStrategy  LogStrategy = iota
	StdoutStrategy LogStrategy = iota
)

Possible log strategies.

var Strategy LogStrategy

Strategy is the current log strattegy used.

Jump to

Keyboard shortcuts

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