Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetFlags(flag int)
- func SetLevel(lvls uint8)
- func SetOutput(w io.Writer)
- func Trace(v ...interface{})
- func Tracef(format string, v ...interface{})
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( TRACE = uint8(1 << iota) DEBUG INFO WARN ERROR PANIC FATAL ALL = uint8(TRACE | DEBUG | INFO | WARN | ERROR | PANIC | FATAL) NORM = uint8(INFO | WARN | ERROR | PANIC | FATAL) NONE = uint8(0x0) )
representation of all statuses.
Variables ¶
View Source
var ( TraceLabel = "[TRACE]" DebugLabel = "[DEBUG]" InfoLabel = " [INFO]" WarnLabel = " [WARN]" ErrorLabel = "[ERROR]" PanicLabel = "[PANIC]" FatalLabel = "[FATAL]" )
status labels. Feel free to change them.
Functions ¶
func Print ¶
func Print(v ...interface{})
Print is a wrapper of log package log.Print func Is INFO-level, prepends InfoLabel
func Printf ¶
func Printf(format string, v ...interface{})
Printf is a wrapper of log package log.Printf func Is equivalent to lvlog.Infof(), prepends InfoLabel
func Println ¶
func Println(v ...interface{})
Println is a wrapper of log package log.Println func Is equivalent to lvlog.Info(), prepends InfoLabel
func SetFlags ¶
func SetFlags(flag int)
SetFlags sets the output flags for the standard logger. It is a wrapper of the log package log.SetFlags func
func SetLevel ¶
func SetLevel(lvls uint8)
SetLevel to 'log.ALL' or 'log.NONE' or 'log.INFO | log.ERROR'
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.