package
Version:
v0.7.8
Opens a new window with list of versions in this module.
Published: Oct 1, 2015
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
DefaultLogFileLocation string = "stdout"
DefaultLogMaxSize int = 100
DefaultLogMaxBackups int = 0
DefaultLogMaxAge int = 0
ErrorMessage LogLevel = iota
WarnMessage
InfoMessage
DebugMessage
TraceMessage
)
func Log(message interface{}, messagelevel LogLevel)
Log a message if the level is below or equal to the set LogMessageLevel
func SetupLumberjack(logFileLocation string, logMaxSize, logMaxBackups, logMaxAge int)
TODO: The LogLevel type already has a String() function. Use that.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.