Documentation ¶
Index ¶
- Constants
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func Panic(format string, v ...interface{})
- func SetLogLevel(level int)
- func SetShowLog(show bool)
- func Warn(format string, v ...interface{})
- type Log
- func (l *Log) Debug(format string, v ...interface{})
- func (l *Log) Error(format string, v ...interface{})
- func (l *Log) Info(format string, v ...interface{})
- func (l *Log) OpenFile() error
- func (l *Log) Panic(format string, v ...interface{})
- func (l *Log) SetLogLevel(level int)
- func (l *Log) Warn(format string, v ...interface{})
Constants ¶
View Source
const ( LOG_LEVEL_DEBUG = 0 LOG_LEVEL_INFO = 1 LOG_LEVEL_WARN = 2 LOG_LEVEL_ERROR = 3 )
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
func SetLogLevel(level int)
func SetShowLog ¶
func SetShowLog(show bool)
Types ¶
type Log ¶
func (*Log) SetLogLevel ¶
Click to show internal directories.
Click to hide internal directories.