Versions in this module Expand all Collapse all v0 v0.1.0 Jun 4, 2018 Changes in this version + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelTrace + const LevelWarn + const Lfile + const Llevel + const Ltime + const TimeFormat + const WhenDay + const WhenHour + const WhenMinute + const WhenSecond + var LevelName [6]string = [6]string + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func Fatal(v ...interface{}) + func Fatalf(format string, v ...interface{}) + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func SetHandler(h Handler) + func SetLevel(level int) + func SetLevelByName(name string) + func Trace(v ...interface{}) + func Tracef(format string, v ...interface{}) + func Warn(v ...interface{}) + func Warnf(format string, v ...interface{}) + type FileHandler struct + func NewFileHandler(fileName string, flag int) (*FileHandler, error) + func (h *FileHandler) Close() error + func (h *FileHandler) Write(b []byte) (n int, err error) + type Handler interface + Close func() error + Write func(p []byte) (n int, err error) + type Logger struct + func New(handler Handler, flag int) *Logger + func NewDefault(handler Handler) *Logger + func (l *Logger) Close() + func (l *Logger) Debug(v ...interface{}) + func (l *Logger) Debugf(format string, v ...interface{}) + func (l *Logger) Error(v ...interface{}) + func (l *Logger) Errorf(format string, v ...interface{}) + func (l *Logger) Fatal(v ...interface{}) + func (l *Logger) Fatalf(format string, v ...interface{}) + func (l *Logger) Info(v ...interface{}) + func (l *Logger) Infof(format string, v ...interface{}) + func (l *Logger) Output(callDepth int, level int, format string, v ...interface{}) + func (l *Logger) SetHandler(h Handler) + func (l *Logger) SetLevel(level int) + func (l *Logger) SetLevelByName(name string) + func (l *Logger) Trace(v ...interface{}) + func (l *Logger) Tracef(format string, v ...interface{}) + func (l *Logger) Warn(v ...interface{}) + func (l *Logger) Warnf(format string, v ...interface{}) + type NullHandler struct + func NewNullHandler() (*NullHandler, error) + func (h *NullHandler) Close() + func (h *NullHandler) Write(b []byte) (n int, err error) + type RotatingFileHandler struct + func NewRotatingFileHandler(fileName string, maxBytes int, backupCount int) (*RotatingFileHandler, error) + func (h *RotatingFileHandler) Close() error + func (h *RotatingFileHandler) Write(p []byte) (n int, err error) + type SocketHandler struct + func NewSocketHandler(protocol string, addr string) (*SocketHandler, error) + func (h *SocketHandler) Close() error + func (h *SocketHandler) Write(p []byte) (n int, err error) + type StreamHandler struct + func NewStreamHandler(w io.Writer) (*StreamHandler, error) + func (h *StreamHandler) Close() error + func (h *StreamHandler) Write(b []byte) (n int, err error) + type TimeRotatingFileHandler struct + func NewTimeRotatingFileHandler(baseName string, when int8, interval int) (*TimeRotatingFileHandler, error) + func (h *TimeRotatingFileHandler) Close() error + func (h *TimeRotatingFileHandler) Write(b []byte) (n int, err error)