Documentation ¶
Index ¶
- Constants
- Variables
- func Breakpoint()
- func CallerStack() string
- 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 Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func SetEmail(email string)
- func SetLevel(lvl int)
- func SetObj(obj string)
- func SetOutput(w io.Writer)
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- type LogOption
- type Logger
- func (l *Logger) Breakpoint()
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Output(lvl int, calldepth int, content string) error
- func (l *Logger) Print(v ...interface{})
- func (l *Logger) Printf(format string, v ...interface{})
- func (l *Logger) SetEmail(v string)
- func (l *Logger) SetLevel(lvl int)
- func (l *Logger) SetLogDir(dir string)
- func (l *Logger) SetObj(obj string)
- func (l *Logger) SetOutput(out io.Writer)
- func (l *Logger) WaitFlush()
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( Ldebug = 1 << iota // Linfo // Lwarn // Lerror // Lfatal // LAsync // 异步输出日志 Ldate // like 2006/01/02 Ltime // like 15:04:05 Lmicroseconds // like 15:04:05.123123 Llongfile // like /a/b/c/d.go:23 Lshortfile // like d.go:23 LUTC // 时间utc输出 Ldaily // Lall = Ldebug | Linfo | Lwarn | Lerror | Lfatal // 2006/01/02 15:04:05.123123, /a/b/c/d.go:23 LstdFlags = Ldate | Lmicroseconds | Lshortfile | Lall )
View Source
const ( Gray = uint8(iota + 90) Red Green Yellow Blue Magenta )
Variables ¶
standard wrapper
Functions ¶
func Breakpoint ¶
func Breakpoint()
func CallerStack ¶
func CallerStack() string
Types ¶
Click to show internal directories.
Click to hide internal directories.