Documentation ¶
Index ¶
- Constants
- Variables
- type Log
- func (t *Log) Close()
- func (t *Log) Debug(format string, v ...interface{})
- func (t *Log) Error(format string, v ...interface{})
- func (t *Log) Fatal(format string, v ...interface{})
- func (t *Log) Info(format string, v ...interface{})
- func (t *Log) Panic(format string, v ...interface{})
- func (t *Log) SetLevel(level string)
- func (t *Log) Warning(format string, v ...interface{})
- type LogLevel
- type Option
- type Options
Constants ¶
View Source
const ( // D_LOG_FLAGS is the default log flags. D_LOG_FLAGS int = log.LstdFlags | log.Lmicroseconds | log.Lshortfile )
Variables ¶
View Source
var LevelNames = [...]string{ DEBUG: "DEBUG", INFO: "INFO", WARNING: "WARNING", ERROR: "ERROR", FATAL: "FATAL", PANIC: "PANIC", }
LevelNames represents the string name of all levels.
Functions ¶
This section is empty.
Types ¶
type Log ¶
Log struct.
Click to show internal directories.
Click to hide internal directories.