Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int32
Level is the Level of logging set in stim
const ( //FatalLevel this is used to log an error that will cause fatal problems in the program FatalLevel Level = 0 //WarnLevel is logging for interesting events that need to be known about but are not crazy WarnLevel Level = 20 InfoLevel Level = 30 VerboseLevel Level = 40 //DebugLevel is used to debugging certain calls in Stim to see what is going on, usually only used for development DebugLevel Level = 50 TraceLevel Level = 60 )
type Logger ¶
type Logger interface {
Debug(...interface{})
Warn(...interface{})
Fatal(...interface{})
}
type StimLogger ¶
type StimLogger interface {
Trace(...interface{})
Debug(...interface{})
Verbose(...interface{})
Info(...interface{})
Warn(...interface{})
Fatal(...interface{})
SetLogger(Logger)
SetLevel(Level)
SetDateFormat(string)
AddLogFile(string, Level) error
ForceFlush(bool)
}
StimLogger this struct is a generic logger used by stim packages
Click to show internal directories.
Click to hide internal directories.