Documentation ¶
Index ¶
Constants ¶
View Source
const ( LevelDebug levelType = 1 LevelInfo levelType = 2 LevelError levelType = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogInterface ¶
type LogInterface interface { SetLevel(level levelType) Debug(format string, args ...interface{}) Info(format string, args ...interface{}) Error(format string, args ...interface{}) Close() }
func NewConsoleLogger ¶
func NewConsoleLogger(level levelType) LogInterface
func NewFileLogger ¶
func NewFileLogger(level levelType, filePath string, toConsole bool) LogInterface
Click to show internal directories.
Click to hide internal directories.