Documentation
¶
Index ¶
- Constants
- func AddBracket()
- func AddColon()
- func Critical(a ...interface{})
- func Criticalf(format string, a ...interface{})
- func Criticalln(a ...interface{})
- func Debug(a ...interface{})
- func Debugf(format string, a ...interface{})
- func Debugln(a ...interface{})
- func Err(level, calldepth int, err error) error
- func ErrCritical(err error)
- func ErrDebug(err error)
- func ErrError(err error)
- func ErrFatal(err error)
- func ErrInfo(err error)
- func ErrNotice(err error)
- func ErrPanic(err error)
- func ErrWarning(err error)
- func Error(a ...interface{})
- func Errorf(format string, a ...interface{})
- func Errorln(a ...interface{})
- func Fatal(a ...interface{})
- func Fatalf(format string, a ...interface{})
- func Fatalln(a ...interface{})
- func Flags() int
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func Infoln(a ...interface{})
- func Level() int
- func LevelName(level int) string
- func NameLevel(name string) int
- func Notice(a ...interface{})
- func Noticef(format string, a ...interface{})
- func Noticeln(a ...interface{})
- func Open(baseName string, seconds, maxSize, maxCount int64) (io.WriteCloser, error)
- func OpenDaily(baseName string) (io.WriteCloser, error)
- func Output(level, calldepth int, a ...interface{}) error
- func Outputf(level, calldepth int, format string, a ...interface{}) error
- func Outputln(level, calldepth int, a ...interface{}) error
- func Panic(a ...interface{})
- func Panicf(format string, a ...interface{})
- func Panicln(a ...interface{})
- func Prefix() string
- func RedirectStderr(name string) error
- func RedirectStdout(name string) error
- func SetFlags(flag int)
- func SetLevel(level int)
- func SetLevelName(level int, name string)
- func SetOutput(w io.Writer)
- func SetPrefix(prefix string)
- func Warning(a ...interface{})
- func Warningf(format string, a ...interface{})
- func Warningln(a ...interface{})
- type Logfile
- type Logger
- func (l *Logger) Critical(a ...interface{})
- func (l *Logger) Criticalf(format string, a ...interface{})
- func (l *Logger) Criticalln(a ...interface{})
- func (l *Logger) Debug(a ...interface{})
- func (l *Logger) Debugf(format string, a ...interface{})
- func (l *Logger) Debugln(a ...interface{})
- func (l *Logger) Err(level, calldepth int, err error) error
- func (l *Logger) ErrCritical(err error)
- func (l *Logger) ErrDebug(err error)
- func (l *Logger) ErrError(err error)
- func (l *Logger) ErrFatal(err error)
- func (l *Logger) ErrInfo(err error)
- func (l *Logger) ErrNotice(err error)
- func (l *Logger) ErrPanic(err error)
- func (l *Logger) ErrWarning(err error)
- func (l *Logger) Error(a ...interface{})
- func (l *Logger) Errorf(format string, a ...interface{})
- func (l *Logger) Errorln(a ...interface{})
- func (l *Logger) Fatal(a ...interface{})
- func (l *Logger) Fatalf(format string, a ...interface{})
- func (l *Logger) Fatalln(a ...interface{})
- func (l *Logger) Flags() int
- func (l *Logger) Info(a ...interface{})
- func (l *Logger) Infof(format string, a ...interface{})
- func (l *Logger) Infoln(a ...interface{})
- func (l *Logger) Level() int
- func (l *Logger) Notice(a ...interface{})
- func (l *Logger) Noticef(format string, a ...interface{})
- func (l *Logger) Noticeln(a ...interface{})
- func (l *Logger) Output(level, calldepth int, a ...interface{}) error
- func (l *Logger) Outputf(level, calldepth int, format string, a ...interface{}) error
- func (l *Logger) Outputln(level, calldepth int, a ...interface{}) error
- func (l *Logger) Panic(a ...interface{})
- func (l *Logger) Panicf(format string, a ...interface{})
- func (l *Logger) Panicln(a ...interface{})
- func (l *Logger) Prefix() string
- func (l *Logger) SetFlags(flag int)
- func (l *Logger) SetLevel(level int)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetPrefix(prefix string)
- func (l *Logger) Warning(a ...interface{})
- func (l *Logger) Warningf(format string, a ...interface{})
- func (l *Logger) Warningln(a ...interface{})
Constants ¶
View Source
const ( Ldate = log.Ldate Ltime = log.Ltime Lmicroseconds = log.Lmicroseconds Llongfile = log.Llongfile Lshortfile = log.Lshortfile LUTC = log.LUTC LstdFlags = log.LstdFlags )
View Source
const ( LevelDebug = (iota + 1) * 100 LevelInfo LevelNotice LevelWarning LevelError LevelCritical LevelPanic LevelFatal )
Variables ¶
This section is empty.
Functions ¶
func AddBracket ¶
func AddBracket()
func Criticalln ¶
func Criticalln(a ...interface{})
func ErrCritical ¶
func ErrCritical(err error)
func ErrWarning ¶
func ErrWarning(err error)
func RedirectStderr ¶
func RedirectStdout ¶
func SetLevelName ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) Criticalln ¶
func (l *Logger) Criticalln(a ...interface{})
func (*Logger) ErrCritical ¶
func (*Logger) ErrWarning ¶
Click to show internal directories.
Click to hide internal directories.