Implement log to file logger (#1494)

* Implement log to file

Logger moved to it's own namespace

* Add lock to log file
This commit is contained in:
ReinforceZwei 2021-03-07 14:23:26 +08:00 committed by GitHub
parent 62c985376e
commit 240468ad22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 306 additions and 144 deletions

View file

@ -50,6 +50,9 @@ infomessages=true # Informative messages (i.e Most of the messa
#chatfilter= # Regex for filtering chat message
#debugfilter= # Regex for filtering debug message
filtermode=blacklist # blacklist OR whitelist. Blacklist hide message match regex. Whitelist show message match regex
logtofile=false # Write log messages to file
logfile=console-log-%username%-%serverip%.txt # Log file name
prependtimestamp=false # Prepend timestamp to messages in log file
[AppVars]
# yourvar=yourvalue