Versions in this module Expand all Collapse all v1 v1.6.7 Feb 27, 2018 Changes in this version + const AdapterAliLS + const AdapterConn + const AdapterConsole + const AdapterDingtalk + const AdapterEs + const AdapterFile + const AdapterJianLiao + const AdapterMail + const AdapterMultiFile + const AdapterSlack + const DiscardNonColorEscSeq + const LevelAlert + const LevelCritical + const LevelDebug + const LevelEmergency + const LevelError + const LevelInfo + const LevelInformational + const LevelNotice + const LevelTrace + const LevelWarn + const LevelWarning + const OutputNonColorEscSeq + func Alert(f interface{}, v ...interface{}) + func ColorByMethod(cond bool, method string) string + func ColorByStatus(cond bool, 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 GetCallStack(skip int, frames int, filter string) (CallStack, sf string) + func GetLogger(prefixes ...string) *log.Logger + func Info(f interface{}, v ...interface{}) + func Informational(f interface{}, v ...interface{}) + func NewAnsiColorWriter(w io.Writer) io.Writer + func NewModeAnsiColorWriter(w io.Writer, mode outputMode) io.Writer + func Notice(f interface{}, v ...interface{}) + func Register(name string, log newLoggerFunc) + func Reset() + func SetLevel(l int) + func SetLogFuncCall(b bool) + func SetLogFuncCallDepth(d int) + func SetLogger(adapter string, config ...string) error + func Trace(f interface{}, v ...interface{}) + func W32Debug(msg string) + func Warn(f interface{}, v ...interface{}) + func Warning(f interface{}, v ...interface{}) + type BeeLogger struct + ProcessID string + 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) 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) 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 DingtalkWriter struct + Level int + WebhookURL string + func (s *DingtalkWriter) Destroy() + func (s *DingtalkWriter) Flush() + func (s *DingtalkWriter) Init(jsonconfig string) error + func (s *DingtalkWriter) WriteMsg(when time.Time, msg string, level int) 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 + func NewFileWriter() 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