View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005784 | unreal | ircd | public | 2020-11-15 18:35 | 2021-03-08 10:39 |
Reporter | Amiga600 | Assigned To | syzop | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Product Version | 5.0.7 | ||||
Fixed in Version | 5.0.9-rc1 | ||||
Summary | 0005784: Add support for dated logfiles | ||||
Description | Please consider adding dated support for logfiles, so each d/m/y they can rotate into a new filename For example this below would create a file like "2020-11-15_logfile.log" log "%Y-%m-%d_logfile.log" { .. }; Also another point I have noticed while playing with Unreal in both Linux and Windows - In Windows, you cannot remove log files as it seems its Locked while in use, and the only way you can effectively clear the file, is opening it in a editor which doesnt give a damn about Lock status, empty the file, and save it (so the resulting file returns to 0 bytes) - Under Linux there does not seem to be any kind of "file locking" going on, so deleting files works fine! | ||||
Tags | No tags attached. | ||||
3rd party modules | |||||
|
(y) if i could set monthly logfiles, would be fine for me. :) so agree in the customization here. thx if you will make it syzop :) |
|
Done, thanks for the suggestion. Docs have been updated as well: https://www.unrealircd.org/docs/Log_block#filename commit 1f47cc7824b290a7089145c46b67b79850a00715 (HEAD -> unreal50, origin/unreal50) Author: Bram Matthys <[email protected]> Date: Mon Mar 8 10:33:54 2021 +0100 Support for dated log files such as log "ircd.%Y-%m-%d.log" { } Suggested by Amiga600 in https://bugs.unrealircd.org/view.php?id=5784 This also fixes a bug with log::maxsize on Windows (cannot overwrite existing file with .old). It simplifies the logging code a little and makes it a tad more readable. And it adds an unreal_strftime() function to make things easy. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-11-15 18:35 | Amiga600 | New Issue | |
2020-11-15 18:44 | syzop | Assigned To | => syzop |
2020-11-15 18:44 | syzop | Status | new => acknowledged |
2020-11-17 01:46 | Lord255 | Note Added: 0021828 | |
2021-03-08 10:39 | syzop | Status | acknowledged => resolved |
2021-03-08 10:39 | syzop | Resolution | open => fixed |
2021-03-08 10:39 | syzop | Fixed in Version | => 5.0.9-rc1 |
2021-03-08 10:39 | syzop | Note Added: 0021905 |