View Issue Details

IDProjectCategoryView StatusLast Update
0005784unrealircdpublic2021-03-08 10:39
ReporterAmiga600 Assigned Tosyzop  
Status resolvedResolutionfixed 
Product Version5.0.7 
Fixed in Version5.0.9-rc1 
Summary0005784: Add support for dated logfiles
DescriptionPlease 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!
TagsNo tags attached.
3rd party modules



2020-11-17 01:46

reporter   ~0021828

(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 :)


2021-03-08 10:39

administrator   ~0021905

Done, thanks for the suggestion. Docs have been updated as well:

commit 1f47cc7824b290a7089145c46b67b79850a00715 (HEAD -> unreal50, origin/unreal50)
Author: Bram Matthys <>
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
    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.

Issue History

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