View Issue Details

IDProjectCategoryView StatusLast Update
0003704unrealircdpublic2008-06-18 14:18
ReporterTurbo_boy Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionno change required 
OSLinux OS Version2.6.18-5-amd64 
Product Version3.2.7 
Summary0003704: Dated log file
DescriptionHello there,

I entered it already on the forum but I sow that requests should go in here.

What I should like to have that logs a made with a date in it, so that every day has a new log file in the format like:
irc.log.yyyymmdd or something similar.

I think this doesn't take much time to fix (I guess).
TagsNo tags attached.
3rd party modules

Relationships

duplicate of 0003623 closed Logging - Similar to Anope 
related to 0003706 closedsyzop Create example cron scripts for log management 

Activities

Stealth

2008-06-18 14:17

reporter   ~0015306

This has been discussed many times in the past, and is exactly what crontab should be used for.

Just add this to your cron script:
@midnight mv $HOME/Unreal/ircd.log $HOME/Unreal/ircd.$(date '+%Y-%m-%d').log

If you are on Windows, there are methods to use the "Scheduled Tasks" feature and a rather basic BAT file or perl script (yes, you can easily get perl on Windows).

Issue History

Date Modified Username Field Change
2008-06-18 12:43 Turbo_boy New Issue
2008-06-18 14:17 Stealth QA => Not touched yet by developer
2008-06-18 14:17 Stealth U4: Need for upstream patch => No need for upstream InspIRCd patch
2008-06-18 14:17 Stealth Status new => closed
2008-06-18 14:17 Stealth Note Added: 0015306
2008-06-18 14:17 Stealth Resolution open => no change required
2008-06-18 14:18 Stealth Relationship added duplicate of 0003623
2008-06-18 21:04 Stealth Relationship added related to 0003706