Versions in this module Expand all Collapse all v1 v1.2.0 May 16, 2014 Changes in this version + const LevelCritical + const LevelDebug + const LevelError + const LevelInfo + const LevelTrace + const LevelWarn + func Register(name string, log loggerType) + type BeeLogger struct + func NewLogger(channellen 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) EnableFuncCallDepth(b bool) + func (bl *BeeLogger) Error(format string, v ...interface{}) + func (bl *BeeLogger) Flush() + func (bl *BeeLogger) Info(format string, v ...interface{}) + func (bl *BeeLogger) SetLevel(l int) + func (bl *BeeLogger) SetLogFuncCallDepth(d int) + func (bl *BeeLogger) SetLogger(adaptername string, config string) error + func (bl *BeeLogger) Trace(format string, v ...interface{}) + func (bl *BeeLogger) Warn(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(jsonconfig string) 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(jsonconfig string) 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(jsonconfig string) error + func (w *FileLogWriter) WriteMsg(msg string, level int) error + type LoggerInterface interface + Destroy func() + Flush func() + Init func(config string) 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 + 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(msg string, level int) error v1.0.1 Dec 24, 2013