loglevel

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2015 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	//Logging
	DefaultLogFileLocation string = "stdout"
	DefaultLogMaxSize      int    = 100
	DefaultLogMaxBackups   int    = 0
	DefaultLogMaxAge       int    = 0

	ErrorMessage LogLevel = iota
	WarnMessage
	InfoMessage
	DebugMessage
	TraceMessage
)

Variables

This section is empty.

Functions

func Log added in v0.6.0

func Log(message interface{}, messagelevel LogLevel)

Log a message if the level is below or equal to the set LogMessageLevel

func Set added in v0.6.0

func Set(l LogLevel)

func SetupLumberjack added in v0.6.2

func SetupLumberjack(logFileLocation string, logMaxSize, logMaxBackups, logMaxAge int)

Types

type LogLevel

type LogLevel int

func ParseLogLevel

func ParseLogLevel(logLevel string) LogLevel

TODO: The LogLevel type already has a String() function. Use that.

func (LogLevel) String

func (l LogLevel) String() string

Jump to

Keyboard shortcuts

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