Versions in this module Expand all Collapse all v1 v1.0.1 Jul 6, 2023 v1.0.0 Dec 2, 2022 Changes in this version + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelTrace + const LevelWarn + const Lfile + const Llevel + const LogSqlOff + const LogSqlOn + const Ltime + const TimeFormat + const WhenDay + const WhenHour + const WhenMinute + const WhenSecond + var GlobalSqlLogger = GlobalSysLogger + var GlobalSysLogger = StdLogger() + var LevelName = [6]string + func Close() + func Debug(module string, method string, msg string, reqId uint32, args ...interface{}) + func Error(module string, method string, msg string, reqId uint32, args ...interface{}) + func Fatal(module string, method string, msg string, reqId uint32, args ...interface{}) + func GetLevel() int + func Info(module string, method string, msg string, reqId uint32, args ...interface{}) + func OutputSql(state string, format string, v ...interface{}) + func SetLevel(level int) + func Trace(module string, method string, msg string, reqId uint32, args ...interface{}) + func Warn(module string, method string, msg string, reqId uint32, args ...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 StdLogger() *Logger + func (l *Logger) Close() + func (l *Logger) Level() int + func (l *Logger) Output(callDepth int, level int, format string, v ...interface{}) + func (l *Logger) SetLevel(level int) + func (l *Logger) Write(p []byte) (n int, err error) + type NullHandler struct + func NewNullHandler() (*NullHandler, error) + func (h *NullHandler) Close() error + 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 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)