Versions in this module Expand all Collapse all v3 v3.0.1 Dec 12, 2020 v3.0.0 Dec 7, 2020 Changes in this version + const AdapterAliLS + const AdapterConn + const AdapterConsole + const AdapterEs + const AdapterFile + const AdapterJianLiao + const AdapterMail + const AdapterMultiFile + const AdapterSlack + const LevelAlert + const LevelCritical + const LevelDebug + const LevelEmergency + const LevelError + const LevelInfo + const LevelInformational + const LevelNotice + const LevelTrace + const LevelWarn + const LevelWarning + func AccessLog(r *AccessLogRecord, format string) + func Alert(f interface{}, v ...interface{}) + func ColorByMethod(method string) string + func ColorByStatus(code int) string + func Critical(f interface{}, v ...interface{}) + func Debug(f interface{}, v ...interface{}) + func Emergency(f interface{}, v ...interface{}) + func EnableFuncCallDepth(b bool) + func Error(f interface{}, v ...interface{}) + func FormatLog(f interface{}, v ...interface{}) string + func GetLogger(prefixes ...string) *log.Logger + func Info(f interface{}, v ...interface{}) + func Informational(f interface{}, v ...interface{}) + func Notice(f interface{}, v ...interface{}) + func Register(name string, log newLoggerFunc) + func Reset() + func ResetColor() string + func SetLevel(l int) + func SetLogFuncCall(b bool) + func SetLogFuncCallDepth(d int) + func SetLogger(adapter string, config ...string) error + func SetPrefix(s string) + func Trace(f interface{}, v ...interface{}) + func Warn(f interface{}, v ...interface{}) + func Warning(f interface{}, v ...interface{}) + type AccessLogRecord struct + BodyBytesSent int64 + ElapsedTime time.Duration + HTTPReferrer string + HTTPUserAgent string + Host string + RemoteAddr string + RemoteUser string + Request string + RequestMethod string + RequestTime time.Time + ServerProtocol string + Status int + type BeeLogger struct + func Async(msgLen ...int64) *BeeLogger + func GetBeeLogger() *BeeLogger + func NewLogger(channelLens ...int64) *BeeLogger + func (bl *BeeLogger) Alert(format string, v ...interface{}) + func (bl *BeeLogger) Async(msgLen ...int64) *BeeLogger + func (bl *BeeLogger) Close() + func (bl *BeeLogger) Critical(format string, v ...interface{}) + func (bl *BeeLogger) Debug(format string, v ...interface{}) + func (bl *BeeLogger) DelLogger(adapterName string) error + func (bl *BeeLogger) Emergency(format string, v ...interface{}) + func (bl *BeeLogger) EnableFuncCallDepth(b bool) + func (bl *BeeLogger) Error(format string, v ...interface{}) + func (bl *BeeLogger) Flush() + func (bl *BeeLogger) GetLevel() int + func (bl *BeeLogger) GetLogFuncCallDepth() int + func (bl *BeeLogger) Info(format string, v ...interface{}) + func (bl *BeeLogger) Informational(format string, v ...interface{}) + func (bl *BeeLogger) Notice(format string, v ...interface{}) + func (bl *BeeLogger) Reset() + func (bl *BeeLogger) SetLevel(l int) + func (bl *BeeLogger) SetLogFuncCallDepth(d int) + func (bl *BeeLogger) SetLogger(adapterName string, configs ...string) error + func (bl *BeeLogger) SetPrefix(s string) + func (bl *BeeLogger) Trace(format string, v ...interface{}) + func (bl *BeeLogger) Warn(format string, v ...interface{}) + func (bl *BeeLogger) Warning(format string, v ...interface{}) + func (bl *BeeLogger) Write(p []byte) (n int, err error) + type JLWriter struct + AuthorName string + ImageURL string + Level int + RedirectURL string + Title string + WebhookURL string + func (s *JLWriter) Destroy() + func (s *JLWriter) Flush() + func (s *JLWriter) Init(jsonconfig string) error + func (s *JLWriter) WriteMsg(when time.Time, msg string, level int) error + type Logger interface + Destroy func() + Flush func() + Init func(config string) error + WriteMsg func(when time.Time, msg string, level int) error + func NewConn() Logger + func NewConsole() Logger + type SLACKWriter struct + Level int + WebhookURL string + func (s *SLACKWriter) Destroy() + func (s *SLACKWriter) Flush() + func (s *SLACKWriter) Init(jsonconfig string) error + func (s *SLACKWriter) WriteMsg(when time.Time, msg string, level int) error + type SMTPWriter struct + FromAddress string + Host string + Level int + Password string + RecipientAddresses []string + Subject string + Username string + func (s *SMTPWriter) Destroy() + func (s *SMTPWriter) Flush() + func (s *SMTPWriter) Init(jsonconfig string) error + func (s *SMTPWriter) WriteMsg(when time.Time, msg string, level int) error