Versions in this module Expand all Collapse all v0 v0.24.1 May 14, 2024 Changes in this version + const FORMAT_DATE + const FORMAT_LONGFILENAME + const FORMAT_MICROSECNDS + const FORMAT_NANO + const FORMAT_SHORTFILENAME + const FORMAT_TIME + const GB + const KB + const LEVEL_ALL + const LEVEL_DEBUG + const LEVEL_ERROR + const LEVEL_FATAL + const LEVEL_INFO + const LEVEL_OFF + const LEVEL_WARN + const MB + const MODE_DAY + const MODE_HOUR + const MODE_MONTH + const TB + const VERSION + var DEBUGNAME = []byte("[DEBUG]") ... + var ERRORNAME = []byte("[DEBUG]") ... + var FATALNAME = []byte("[DEBUG]") ... + var INFONAME = []byte("[DEBUG]") ... + var TIME_DEVIATION time.Duration + var WARNNAME = []byte("[DEBUG]") ... + type Logging struct + func Debug(v ...interface{}) *Logging + func Error(v ...interface{}) *Logging + func Fatal(v ...interface{}) *Logging + func GetStaticLogger() *Logging + func Info(v ...interface{}) *Logging + func NewLogger() (log *Logging) + func SetConsole(on bool) *Logging + func SetFormat(format _FORMAT) *Logging + func SetGzipOn(is bool) (l *Logging) + func SetLevel(level _LEVEL) *Logging + func SetRollingByTime(fileDir, fileName string, mode _MODE_TIME) (l *Logging, err error) + func SetRollingDaily(fileDir, fileName string) (l *Logging, err error) + func SetRollingFile(fileDir, fileName string, maxFileSize int64, unit _UNIT) (l *Logging, err error) + func SetRollingFileLoop(fileDir, fileName string, maxFileSize int64, unit _UNIT, maxFileNum int) (l *Logging, err error) + func Warn(v ...interface{}) *Logging + func (t *Logging) Debug(v ...interface{}) *Logging + func (t *Logging) Error(v ...interface{}) *Logging + func (t *Logging) Fatal(v ...interface{}) *Logging + func (t *Logging) Info(v ...interface{}) *Logging + func (t *Logging) SetConsole(_isConsole bool) *Logging + func (t *Logging) SetFormat(format _FORMAT) *Logging + func (t *Logging) SetGzipOn(is bool) *Logging + func (t *Logging) SetLevel(level _LEVEL) *Logging + func (t *Logging) SetRollingByTime(fileDir, fileName string, mode _MODE_TIME) (l *Logging, err error) + func (t *Logging) SetRollingDaily(fileDir, fileName string) (l *Logging, err error) + func (t *Logging) SetRollingFile(fileDir, fileName string, maxFileSize int64, unit _UNIT) (l *Logging, err error) + func (t *Logging) SetRollingFileLoop(fileDir, fileName string, maxFileSize int64, unit _UNIT, maxFileNum int) (l *Logging, err error) + func (t *Logging) Warn(v ...interface{}) *Logging + func (t *Logging) Write(bs []byte) (n int, err error) + func (t *Logging) WriteBin(bs []byte) (bakfn string, err error) v0.23.0 Sep 30, 2023