Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2022 Changes in this version + var LogToolsDefault = new(LogTools) + func BaseName(p string) string + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func GetSelfFileDir() string + func GetSelfFileName() string + func Infor(v ...interface{}) + func Inforf(format string, v ...interface{}) + func InitLogTools(logconfigFile string) func() + func IsExist(p string) bool + func LogBytes(writelevel LOGLEVEL, b []byte) (n int, err error) + func LogString(writelevel LOGLEVEL, s string) + func Panic(v ...interface{}) + func SingletonProcess(mutexName string) func() + func Warning(v ...interface{}) + func Warningf(format string, v ...interface{}) + type LOGLEVEL int8 + const LevelClose + const LevelDebug + const LevelError + const LevelInfo + const LevelWarning + type LogTools struct + LogFileDirctory string + LogFileName string + LogLevel LOGLEVEL + StdOut int + func (l *LogTools) Write(b []byte) (n int, err error)