# README
logger
How to use
The duration for recording a single log file is 24 hours. After the duration exceeds 24 hours, a log file is automatically divided. All logs can be stored for a maximum of 7 x 24 hours.
Def use
Logs are stored in the Log folder under the current program. The default log level is Info.
logger.SetLoggerName("AppName")
logger.Info("haha")
// will save like AppName.log
Change log level
logger.SetLoggerName("AppName")
logger.Info("haha")
// [INFO]: 2022-02-11 08:51:16 - haha
logger.SetLoggerLevel(logrus.InfoLevel)
logger.Debug("haha")
// [DEBUG]: 2022-02-11 08:51:16 - haha
Set log file save path
By default, will save at ./Logs/
logger.SetLoggerRootDir("/config/xxx")
// will save at /config/xxx/Logs
Set logger name
By default, will save log files like: logger.log
logger.SetLoggerName("AppName")
// will save like AppName.log
Base on
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author