Versions in this module Expand all Collapse all v1 v1.3.1 Mar 5, 2019 v1.3.0 Mar 14, 2018 Changes in this version + const CLOSE + const LevelAlert + const LevelApp + const LevelCritical + const LevelDebug + const LevelEmergency + const LevelError + const LevelInformational + const LevelNothing + const LevelNotice + const LevelWarning + const NULL + const REST + const WORK + func Register(name string, log loggerType) + type BeeLogger struct + func NewLogger(channellen int64, stealLevel ...int) *BeeLogger + func (bl *BeeLogger) Alert(format string, v ...interface{}) + func (bl *BeeLogger) App(format string, v ...interface{}) + func (bl *BeeLogger) Async(enable bool) *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) EnableStealOne(enable bool) + func (bl *BeeLogger) Error(format string, v ...interface{}) + func (bl *BeeLogger) Flush() + func (bl *BeeLogger) GetLogFuncCallDepth() int + func (bl *BeeLogger) GoOn() + func (bl *BeeLogger) Informational(format string, v ...interface{}) + func (bl *BeeLogger) Notice(format string, v ...interface{}) + func (bl *BeeLogger) Rest() + func (bl *BeeLogger) SetLevel(l int) + func (bl *BeeLogger) SetLogFuncCallDepth(d int) + func (bl *BeeLogger) SetLogger(adaptername string, config map[string]interface{}) error + func (bl *BeeLogger) SetStatus(status int) + func (bl *BeeLogger) SetStealLevel(l int) + func (bl *BeeLogger) Status() (int, string) + func (bl *BeeLogger) StealOne() (level int, msg string, ok bool) + func (bl *BeeLogger) Warning(format string, v ...interface{}) + type Brush func(string) string + func NewBrush(color string) Brush + type ConnWriter struct + Addr string + Level int + Net string + Reconnect bool + ReconnectOnMsg bool + func (c *ConnWriter) Destroy() + func (c *ConnWriter) Flush() + func (c *ConnWriter) Init(config map[string]interface{}) error + func (c *ConnWriter) WriteMsg(msg string, level int) error + type ConsoleWriter struct + Level int + func (c *ConsoleWriter) Destroy() + func (c *ConsoleWriter) Flush() + func (c *ConsoleWriter) Init(config map[string]interface{}) error + func (c *ConsoleWriter) WriteMsg(msg string, level int) error + type FileLogWriter struct + Daily bool + Filename string + Level int + Maxdays int64 + Maxlines int + Maxsize int + Rotate bool + func (w *FileLogWriter) Destroy() + func (w *FileLogWriter) DoRotate() error + func (w *FileLogWriter) Flush() + func (w *FileLogWriter) Init(config map[string]interface{}) error + func (w *FileLogWriter) WriteMsg(msg string, level int) error + type LoggerInterface interface + Destroy func() + Flush func() + Init func(config map[string]interface{}) error + WriteMsg func(msg string, level int) error + func NewConn() LoggerInterface + func NewConsole() LoggerInterface + func NewFileWriter() LoggerInterface + func NewSmtpWriter() LoggerInterface + type MuxWriter struct + func (l *MuxWriter) SetFd(fd *os.File) + func (l *MuxWriter) Write(b []byte) (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) GetSmtpAuth(host string) smtp.Auth + func (s *SmtpWriter) Init(config map[string]interface{}) error + func (s *SmtpWriter) WriteMsg(msg string, level int) error