Versions in this module Expand all Collapse all v5 v5.0.0 Sep 10, 2019 Changes in this version + var Default = New() + var Exit = os.Exit + func Debug(obj ...interface{}) + func Debugf(msg string, args ...interface{}) + func Debugln(obj ...interface{}) + func Error(obj ...interface{}) + func Errorf(msg string, args ...interface{}) + func Errorln(obj ...interface{}) + func Fatal(obj ...interface{}) + func Fatalf(msg string, args ...interface{}) + func Fatalln(obj ...interface{}) + func FilelineCaller(skip int) (file string, line int) + func Info(obj ...interface{}) + func Infof(msg string, args ...interface{}) + func Infoln(obj ...interface{}) + func IsDebugEnabled() bool + func IsDisabled() bool + func IsErrorEnabled() bool + func IsFatalEnabled() bool + func IsInfoEnabled() bool + func IsPanicEnabled() bool + func IsPrintEnabled() bool + func IsTerminal(w io.Writer) bool + func IsWarnEnabled() bool + func Panic(obj ...interface{}) + func Panicf(msg string, args ...interface{}) + func Panicln(obj ...interface{}) + func Print(obj ...interface{}) + func Printf(msg string, args ...interface{}) + func Println(obj ...interface{}) + func Warn(obj ...interface{}) + func Warnf(msg string, args ...interface{}) + func Warnln(obj ...interface{}) + type AlwaysNewFileWriter struct + MaxCount int + Name string + func (w *AlwaysNewFileWriter) Write(p []byte) (n int, err error) + type DailyFileWriter struct + MaxCount int + Name string + func (w *DailyFileWriter) Write(p []byte) (n int, err error) + type FixedSizeFileWriter struct + MaxCount int + MaxSize int64 + Name string + func (w *FixedSizeFileWriter) Write(p []byte) (n int, err error) + type Formatter interface + Format func(level Level, msg string, logger *Logger) []byte + type Interface interface + Debug func(...interface{}) + Debugf func(string, ...interface{}) + Debugln func(...interface{}) + Error func(...interface{}) + Errorf func(string, ...interface{}) + Errorln func(...interface{}) + Fatal func(...interface{}) + Fatalf func(string, ...interface{}) + Fatalln func(...interface{}) + Info func(...interface{}) + Infof func(string, ...interface{}) + Infoln func(...interface{}) + Panic func(...interface{}) + Panicf func(string, ...interface{}) + Panicln func(...interface{}) + Print func(...interface{}) + Printf func(string, ...interface{}) + Println func(...interface{}) + Warn func(...interface{}) + Warnf func(string, ...interface{}) + Warnln func(...interface{}) + type JSONFormatter struct + AppName string + TimeFormat string + func (f *JSONFormatter) Format(level Level, msg string, logger *Logger) []byte + type Level uint32 + const DEBUG + const ERROR + const FATAL + const INFO + const OFF + const PANIC + const WARN + func ParseLevel(name string) (Level, error) + func (level Level) ColorString() string + func (level Level) String() string + type Logger struct + Formatter Formatter + Level Level + Out io.Writer + func New() *Logger + func (l *Logger) Debug(obj ...interface{}) + func (l *Logger) Debugf(msg string, args ...interface{}) + func (l *Logger) Debugln(obj ...interface{}) + func (l *Logger) Error(obj ...interface{}) + func (l *Logger) Errorf(msg string, args ...interface{}) + func (l *Logger) Errorln(obj ...interface{}) + func (l *Logger) Fatal(obj ...interface{}) + func (l *Logger) Fatalf(msg string, args ...interface{}) + func (l *Logger) Fatalln(obj ...interface{}) + func (l *Logger) Info(obj ...interface{}) + func (l *Logger) Infof(msg string, args ...interface{}) + func (l *Logger) Infoln(obj ...interface{}) + func (l *Logger) IsDebugEnabled() bool + func (l *Logger) IsDisabled() bool + func (l *Logger) IsErrorEnabled() bool + func (l *Logger) IsFatalEnabled() bool + func (l *Logger) IsInfoEnabled() bool + func (l *Logger) IsPanicEnabled() bool + func (l *Logger) IsPrintEnabled() bool + func (l *Logger) IsWarnEnabled() bool + func (l *Logger) Panic(obj ...interface{}) + func (l *Logger) Panicf(msg string, args ...interface{}) + func (l *Logger) Panicln(obj ...interface{}) + func (l *Logger) Print(obj ...interface{}) + func (l *Logger) Printf(msg string, args ...interface{}) + func (l *Logger) Println(obj ...interface{}) + func (l *Logger) Warn(obj ...interface{}) + func (l *Logger) Warnf(msg string, args ...interface{}) + func (l *Logger) Warnln(obj ...interface{}) + type StdLog interface + Fatal func(...interface{}) + Fatalf func(string, ...interface{}) + Fatalln func(...interface{}) + Panic func(...interface{}) + Panicf func(string, ...interface{}) + Panicln func(...interface{}) + Print func(...interface{}) + Printf func(string, ...interface{}) + Println func(...interface{}) + type TextFormatter struct + AppName string + TimeFormat string + func (f *TextFormatter) Format(level Level, msg string, logger *Logger) []byte Other modules containing this package github.com/fangdingjun/go-log