Versions in this module Expand all Collapse all v0 v0.0.2 May 10, 2020 v0.0.1 May 10, 2020 Changes in this version + const Admin + func AddDyeingUser(key string) error + func Colored() + func FlushLogger() + func GetAllDyeingUser() []string + func GetDyeingLogQueue() *chan *dyeingLogValue + func GetLevel() string + func HandleDyeingAdmin(command string) (string, error) + func IsDyeingUser(key string) bool + func RemoveDyeingUser(key string) error + func SetCallerFlag(flag bool) + func SetCallerSkip(skip int) + func SetDyeingUser(v []string) + func SetLevel(level LogLevel) + type ConsoleWriter struct + func (w *ConsoleWriter) NeedPrefix() bool + func (w *ConsoleWriter) Write(v []byte) + type DateType uint8 + const DAY + const HOUR + type DateWriter struct + func NewDateWriter(logpath, name string, dateType DateType, num int) *DateWriter + func (w *DateWriter) NeedPrefix() bool + func (w *DateWriter) SetPrefix(enable bool) + func (w *DateWriter) Write(v []byte) + type HourWriter struct + type LogLevel uint8 + const DEBUG + const ERROR + const INFO + const OFF + const WARN + func GetLogLevel() LogLevel + func StringToLevel(level string) LogLevel + func (lv *LogLevel) String() string + type LogWriter interface + NeedPrefix func() bool + Write func(v []byte) + type Logger struct + func GetLogger(name string) *Logger + func (l *Logger) Debug(v ...interface{}) + func (l *Logger) Debugf(format string, v ...interface{}) + func (l *Logger) DyeingDebug(ctx context.Context, ext interface{}, v ...interface{}) + func (l *Logger) DyeingDebugf(ctx context.Context, ext interface{}, format string, v ...interface{}) + func (l *Logger) DyeingError(ctx context.Context, ext interface{}, v ...interface{}) + func (l *Logger) DyeingErrorf(ctx context.Context, ext interface{}, format string, v ...interface{}) + func (l *Logger) DyeingInfo(ctx context.Context, ext interface{}, v ...interface{}) + func (l *Logger) DyeingInfof(ctx context.Context, ext interface{}, format string, v ...interface{}) + func (l *Logger) DyeingWarn(ctx context.Context, ext interface{}, v ...interface{}) + func (l *Logger) DyeingWarnf(ctx context.Context, ext interface{}, format string, v ...interface{}) + func (l *Logger) DyeingWritef(ctx context.Context, depth int, level LogLevel, ext interface{}, format string, ...) + func (l *Logger) Error(v ...interface{}) + func (l *Logger) Errorf(format string, v ...interface{}) + func (l *Logger) Info(v ...interface{}) + func (l *Logger) Infof(format string, v ...interface{}) + func (l *Logger) IsConsoleWriter() bool + func (l *Logger) SetConsole() + func (l *Logger) SetDayRoller(logpath string, num int) error + func (l *Logger) SetFileRoller(logpath string, num int, sizeMB int) error + func (l *Logger) SetHourRoller(logpath string, num int) error + func (l *Logger) SetLogName(name string) + func (l *Logger) SetWriter(w LogWriter) + func (l *Logger) Warn(v ...interface{}) + func (l *Logger) Warnf(format string, v ...interface{}) + func (l *Logger) WriteLog(msg []byte) + func (l *Logger) Writef(depth int, level LogLevel, format string, v []interface{}) + type RollFileWriter struct + func NewRollFileWriter(logpath, name string, num, sizeMB int) *RollFileWriter + func (w *RollFileWriter) NeedPrefix() bool + func (w *RollFileWriter) Write(v []byte)