Documentation ¶
Index ¶
- Constants
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func SetLogLevel(level int)
- func SetLogger(l ILogger)
- func Warn(format string, args ...interface{})
- type ConsoleLogger
- func (ConsoleLogger) Close()
- func (cl ConsoleLogger) Debug(format string, args ...interface{})
- func (cl ConsoleLogger) Error(format string, args ...interface{})
- func (cl ConsoleLogger) Info(format string, args ...interface{})
- func (cl *ConsoleLogger) SetLevel(level int)
- func (cl ConsoleLogger) Warn(format string, args ...interface{})
- type ILogger
Constants ¶
View Source
const ( LevelEmergency = iota LevelAlert LevelCritical LevelError LevelWarning LevelNotice LevelInformational LevelDebug )
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
func SetLogLevel(level int)
Types ¶
type ConsoleLogger ¶
type ConsoleLogger struct {
// contains filtered or unexported fields
}
func (ConsoleLogger) Close ¶
func (ConsoleLogger) Close()
func (ConsoleLogger) Debug ¶
func (cl ConsoleLogger) Debug(format string, args ...interface{})
func (ConsoleLogger) Error ¶
func (cl ConsoleLogger) Error(format string, args ...interface{})
func (ConsoleLogger) Info ¶
func (cl ConsoleLogger) Info(format string, args ...interface{})
func (*ConsoleLogger) SetLevel ¶
func (cl *ConsoleLogger) SetLevel(level int)
func (ConsoleLogger) Warn ¶
func (cl ConsoleLogger) Warn(format string, args ...interface{})
type ILogger ¶
type ILogger interface { Debug(format string, args ...interface{}) Info(format string, args ...interface{}) Warn(format string, args ...interface{}) Error(format string, args ...interface{}) //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// SetLevel(int) //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Close() }
func NewConsoleLogger ¶
func NewConsoleLogger() (l ILogger)
Click to show internal directories.
Click to hide internal directories.