Versions in this module Expand all Collapse all v1 v1.2.4 Aug 26, 2022 v1.2.3 Aug 26, 2022 v1.0.0 Aug 26, 2022 Changes in this version + const DEBUG + const ERROR + const FATAL + const INFO + const TRACE + const WARNING + var LEVEL_FLAGS = [...]string + func Close() + func Debug(fmt string, args ...interface{}) + func Error(fmt string, args ...interface{}) + func Fatal(fmt string, args ...interface{}) + func Info(fmt string, args ...interface{}) + func Register(w Writer) + func SetLayout(layout string) + func SetLevel(lvl int) + func SetupDefaultLogWithConf(lc LogConfig) (err error) + func SetupLogInstanceWithConf(lc LogConfig, logger *Logger) (err error) + func Trace(fmt string, args ...interface{}) + func Warn(fmt string, args ...interface{}) + type ConfConsoleWriter struct + Color bool + On bool + type ConfFileWriter struct + LogPath string + On bool + RotateLogPath string + RotateWfLogPath string + WfLogPath string + type ConsoleWriter struct + func NewConsoleWriter() *ConsoleWriter + func (w *ConsoleWriter) Init() error + func (w *ConsoleWriter) SetColor(c bool) + func (w *ConsoleWriter) Write(r *Record) error + type FileWriter struct + func NewFileWriter() *FileWriter + func (w *FileWriter) CreateLogFile() error + func (w *FileWriter) Flush() error + func (w *FileWriter) Init() error + func (w *FileWriter) Rotate() error + func (w *FileWriter) SetFileName(filename string) + func (w *FileWriter) SetLogLevelCeil(ceil int) + func (w *FileWriter) SetLogLevelFloor(floor int) + func (w *FileWriter) SetPathPattern(pattern string) error + func (w *FileWriter) Write(r *Record) error + type Flusher interface + Flush func() error + type LogConfig struct + CW ConfConsoleWriter + FW ConfFileWriter + Level string + type Logger struct + func NewLogger() *Logger + func (l *Logger) Close() + func (l *Logger) Debug(fmt string, args ...interface{}) + func (l *Logger) Error(fmt string, args ...interface{}) + func (l *Logger) Fatal(fmt string, args ...interface{}) + func (l *Logger) Info(fmt string, args ...interface{}) + func (l *Logger) Register(w Writer) + func (l *Logger) SetLayout(layout string) + func (l *Logger) SetLevel(lvl int) + func (l *Logger) Trace(fmt string, args ...interface{}) + func (l *Logger) Warn(fmt string, args ...interface{}) + type Record struct + func (r *Record) String() string + type Rotater interface + Rotate func() error + SetPathPattern func(string) error + type Writer interface + Init func() error + Write func(*Record) error