Versions in this module Expand all Collapse all v0 v0.0.4 Jun 6, 2024 v0.0.3 Jun 4, 2024 Changes in this version + const FORMAT_LEVELFLAG + type FileOption interface + Compress func() bool + Cutmode func() _CUTMODE + FilePath func() string + MaxBuckup func() int + MaxSize func() uint64 + TimeMode func() _MODE_TIME + type FileSizeMode struct + Filename string + IsCompress bool + Maxbuckup int + Maxsize uint64 + func (f *FileSizeMode) Compress() bool + func (f *FileSizeMode) Cutmode() _CUTMODE + func (f *FileSizeMode) FilePath() string + func (f *FileSizeMode) MaxBuckup() int + func (f *FileSizeMode) MaxSize() uint64 + func (f *FileSizeMode) TimeMode() _MODE_TIME + type FileTimeMode struct + Filename string + IsCompress bool + Maxbuckup int + Timemode _MODE_TIME + func (f *FileTimeMode) Compress() bool + func (f *FileTimeMode) Cutmode() _CUTMODE + func (f *FileTimeMode) FilePath() string + func (f *FileTimeMode) MaxBuckup() int + func (f *FileTimeMode) MaxSize() uint64 + func (f *FileTimeMode) TimeMode() _MODE_TIME type Logging + func SetFormatter(formatter string) *Logging + func SetOption(option *Option) *Logging + func (t *Logging) SetFormatter(formatter string) *Logging + func (t *Logging) SetOption(option *Option) *Logging + type Option struct + Console bool + FileOption FileOption + Format _FORMAT + Formatter string + Level _LEVEL v0.0.2 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.0.1 Oct 3, 2023