Versions in this module Expand all Collapse all v1 v1.1.0 Jun 22, 2021 Changes in this version + const DATEFORMAT + const DEFAULT_FILE_COUNT + const DEFAULT_FILE_SIZE + const DEFAULT_FILE_UNIT + const DEFAULT_LOG_LEVEL + const DEFAULT_LOG_SCAN + const DEFAULT_LOG_SEQ + const DEFAULT_PRINT_INTERVAL + const Ldate + const Llongfile + const Lmicroseconds + const Lshortfile + const LstdFlags + const Ltime + type FileLogger struct + func NewDailyAndSizeLogger(fileDir, fileName, prefix string, fileCount int, fileSize int64, unit UNIT, ...) *FileLogger + func NewDailyLogger(fileDir, fileName, prefix string, logScan int64, logSeq int) *FileLogger + func NewDefaultLogger(fileDir, fileName string) *FileLogger + func NewSizeLogger(fileDir, fileName, prefix string, fileCount int, fileSize int64, unit UNIT, ...) *FileLogger + func (f *FileLogger) Close() error + func (f *FileLogger) E(format string, v ...interface{}) + func (f *FileLogger) Error(format string, v ...interface{}) + func (f *FileLogger) I(format string, v ...interface{}) + func (f *FileLogger) Info(format string, v ...interface{}) + func (f *FileLogger) Print(v ...interface{}) + func (f *FileLogger) Printf(format string, v ...interface{}) + func (f *FileLogger) Println(v ...interface{}) + func (f *FileLogger) SetFlags(flag int) + func (f *FileLogger) SetLogConsole(console bool) + func (f *FileLogger) SetLogLevel(level LEVEL) + func (f *FileLogger) SetLogScanInterval(interval int) + func (f *FileLogger) SetLogSeq(logSeq int) + func (f *FileLogger) SetMaxFileCount(count int) int + func (f *FileLogger) SetMaxFileSize(size int64, unit UNIT) int64 + func (f *FileLogger) SetPrefix(prefix string) + func (f *FileLogger) T(format string, v ...interface{}) + func (f *FileLogger) Trace(format string, v ...interface{}) + func (f *FileLogger) W(format string, v ...interface{}) + func (f *FileLogger) Warn(format string, v ...interface{}) + type LEVEL byte + const ERROR + const INFO + const OFF + const TRACE + const WARN + type SplitType byte + const SplitType_Daily + const SplitType_DailyAndSize + const SplitType_Size + type UNIT int64 + const GB + const KB + const MB + const TB