Disable date in log file naming? #614
Locked
GanimanSwift
started this conversation in
Archive
Replies: 1 comment 4 replies
-
If you're interested in changing how the main logging sink works, you can swap out You can also change the logging pattern if needs be: https://github.com/LandSandBoat/server/blob/base/src/common/logging.cpp#L56 We opted to make this change because (more often than not) our average user is running Windows and this is a more common pattern there. If you're more comfortable using Linux, making these changes should be trivial for you. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've noticed recently that log files now have a date in the filename. Is there some way to configure this or disable the date in the file name? This is unnecessary on linux servers that use logrotate, and sort of makes a mess of it if you do. Might be better to provide logrotate configs instead of adding a date to log files. It is very "non-standard" to use this naming convention on linux systems.
Example:
If I start a map server with the flag
--log /var/log/xiserver/game-54230.log
it changes the log's filename togame-54230_2021-08-14.log
. This is not desirable, especially when I am specifying a filename.If users want to add a date to filenames one way would be to specify the log filename like:
--log /var/log/xiserver/game-54230_$(date +"%y-%m-%d")
Beta Was this translation helpful? Give feedback.
All reactions