Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2019 Changes in this version + const CleanDays + const DebugLevel + const FatalLevel + const NoneLevel + const NoticeLevel + const SpliterDelay + const TraceLevel + const WarnLevel + const XConsoleLogDefaultlogID + const XFileLogDefaultLogID + const XLogDefSkipNum + func LevelFromStr(level string) int + type Brush func(string) string + func NewBrush(color string) Brush + type LogInstance struct + type LogManager struct + func CreateLogManager(name string, config map[string]string, source ...string) (*LogManager, error) + func (l *LogManager) Close() + func (l *LogManager) Debug(format string, a ...interface{}) (err error) + func (l *LogManager) Debugx(logID, format string, a ...interface{}) (err error) + func (l *LogManager) EnableLogger(name string, enable bool) (err error) + func (l *LogManager) Fatal(format string, a ...interface{}) (err error) + func (l *LogManager) Fatalx(logID, format string, a ...interface{}) (err error) + func (l *LogManager) GetLogger(name string) (logger XLogger, err error) + func (l *LogManager) Init(name string, config map[string]string, source ...string) (err error) + func (l *LogManager) Notice(format string, a ...interface{}) (err error) + func (l *LogManager) Noticex(logID, format string, a ...interface{}) (err error) + func (l *LogManager) ReOpen() (err error) + func (l *LogManager) RegisterLogger(name string, logger XLogger) (err error) + func (l *LogManager) SetLevel(name, level string) (err error) + func (l *LogManager) SetLevelAll(level string) + func (l *LogManager) Trace(format string, a ...interface{}) (err error) + func (l *LogManager) Tracex(logID, format string, a ...interface{}) (err error) + func (l *LogManager) UnregisterLogger(name string) (err error) + func (l *LogManager) Warn(format string, a ...interface{}) (err error) + func (l *LogManager) Warnx(logID, format string, a ...interface{}) (err error) + type XConsoleLog struct + func (p *XConsoleLog) Close() + func (p *XConsoleLog) Debug(format string, a ...interface{}) error + func (p *XConsoleLog) Debugx(logID, format string, a ...interface{}) error + func (p *XConsoleLog) Fatal(format string, a ...interface{}) error + func (p *XConsoleLog) Fatalx(logID, format string, a ...interface{}) error + func (p *XConsoleLog) GetHost() string + func (p *XConsoleLog) Init(config map[string]string) (err error) + func (p *XConsoleLog) Notice(format string, a ...interface{}) error + func (p *XConsoleLog) Noticex(logID, format string, a ...interface{}) error + func (p *XConsoleLog) ReOpen() error + func (p *XConsoleLog) SetLevel(level string) + func (p *XConsoleLog) SetSkip(skip int) + func (p *XConsoleLog) Trace(format string, a ...interface{}) error + func (p *XConsoleLog) Tracex(logID, format string, a ...interface{}) error + func (p *XConsoleLog) Warn(format string, a ...interface{}) error + func (p *XConsoleLog) Warnx(logID, format string, a ...interface{}) error + type XFileLog struct + func (p *XFileLog) Close() + func (p *XFileLog) Debug(format string, a ...interface{}) error + func (p *XFileLog) Debugx(logID, format string, a ...interface{}) error + func (p *XFileLog) Fatal(format string, a ...interface{}) error + func (p *XFileLog) Fatalx(logID, format string, a ...interface{}) error + func (p *XFileLog) GetHost() string + func (p *XFileLog) Init(config map[string]string) (err error) + func (p *XFileLog) Notice(format string, a ...interface{}) error + func (p *XFileLog) Noticex(logID, format string, a ...interface{}) error + func (p *XFileLog) ReOpen() error + func (p *XFileLog) SetLevel(level string) + func (p *XFileLog) SetSkip(skip int) + func (p *XFileLog) Trace(format string, a ...interface{}) error + func (p *XFileLog) Tracex(logID, format string, a ...interface{}) error + func (p *XFileLog) Warn(format string, a ...interface{}) error + func (p *XFileLog) Warnx(logID, format string, a ...interface{}) error + type XLogger interface + Close func() + Debug func(format string, a ...interface{}) error + Debugx func(logID, format string, a ...interface{}) error + Fatal func(format string, a ...interface{}) error + Fatalx func(logID, format string, a ...interface{}) error + Init func(config map[string]string) error + Notice func(format string, a ...interface{}) error + Noticex func(logID, format string, a ...interface{}) error + ReOpen func() error + SetLevel func(level string) + SetSkip func(skip int) + Trace func(format string, a ...interface{}) error + Tracex func(logID, format string, a ...interface{}) error + Warn func(format string, a ...interface{}) error + Warnx func(logID, format string, a ...interface{}) error + func NewXConsoleLog() XLogger + func NewXFileLog() XLogger