Versions in this module Expand all Collapse all v0 v0.9.97 Nov 2, 2016 Changes in this version + const CRITICAL + const DEBUG + const ERROR + const FATAL + const INFO + const TRACE + const WARN + func Close() + func Critical(skip int, format string, v ...interface{}) + func Debug(format string, v ...interface{}) + func Error(skip int, format string, v ...interface{}) + func Fatal(skip int, format string, v ...interface{}) + func Info(format string, v ...interface{}) + func NewGitLogger(logPath string) + func NewLogger(bufLen int64, mode, config string) + func Register(name string, log loggerType) + func Trace(format string, v ...interface{}) + func 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 (_ *ConnWriter) Flush() + func (cw *ConnWriter) Destroy() + func (cw *ConnWriter) Init(jsonconfig string) error + func (cw *ConnWriter) WriteMsg(msg string, skip, level int) error + type ConsoleWriter struct + Level int + func (_ *ConsoleWriter) Destroy() + func (_ *ConsoleWriter) Flush() + func (cw *ConsoleWriter) Init(config string) error + func (cw *ConsoleWriter) WriteMsg(msg string, skip, 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 string) error + func (w *FileLogWriter) StartLogger() error + func (w *FileLogWriter) WriteMsg(msg string, skip, level int) error + type LogLevel int + type Logger struct + var GitLogger *Logger + func (l *Logger) Close() + func (l *Logger) Critical(skip int, format string, v ...interface{}) + func (l *Logger) Debug(format string, v ...interface{}) + func (l *Logger) DelLogger(adapter string) error + func (l *Logger) Error(skip int, format string, v ...interface{}) + func (l *Logger) Fatal(skip int, format string, v ...interface{}) + func (l *Logger) Flush() + func (l *Logger) Info(format string, v ...interface{}) + func (l *Logger) SetLogger(adapter string, config string) error + func (l *Logger) StartLogger() + func (l *Logger) Trace(format string, v ...interface{}) + func (l *Logger) Warn(format string, v ...interface{}) + type LoggerInterface interface + Destroy func() + Flush func() + Init func(config string) error + WriteMsg func(msg string, skip, 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 (_ *SmtpWriter) Destroy() + func (_ *SmtpWriter) Flush() + func (s *SmtpWriter) WriteMsg(msg string, skip, level int) error + func (sw *SmtpWriter) Init(jsonconfig string) error