Versions in this module Expand all Collapse all v1 v1.2.0 Aug 10, 2021 Changes in this version + func GetInfo(skip int) (funcName, fileName string, LineNum int) + type ConsolLogger struct + func NewConsolLogger(levelStr string) (ConsolLogger, error) + func (c ConsolLogger) Debug(format string, a ...interface{}) + func (c ConsolLogger) Error(format string, a ...interface{}) + func (c ConsolLogger) Info(format string, a ...interface{}) + func (c ConsolLogger) Warn(format string, a ...interface{}) + type FileLogger struct + ErrorFileOBJ *os.File + FileOBJ *os.File + LogFileName string + LogFilePath string + LogLevel LogLevel + LogMaxFileSize int64 + func NewFileLogger(levelStr, fileName, filePath string, maxFileSize int64) (*FileLogger, error) + func (f *FileLogger) CheckSize(file *os.File) bool + func (f *FileLogger) CloseLogFile() error + func (f *FileLogger) Debug(format string, a ...interface{}) + func (f *FileLogger) Error(format string, a ...interface{}) + func (f *FileLogger) Info(format string, a ...interface{}) + func (f *FileLogger) Warn(format string, a ...interface{}) + type LogLevel uint16 + const DEBUG + const ERROR + const INFO + const UNKNOWN + const WARN + type Logger interface + Debug func(format string, a ...interface{}) + Error func(format string, a ...interface{}) + Info func(format string, a ...interface{}) + Warn func(format string, a ...interface{}) v1.0.0 Aug 9, 2021