cronolog.org
flexible web log rotation
HOME
DOWNLOAD
FEATURES
USAGE
FAQ
BLOG
KNOWN BUGS
SECURITY
PATCHES
USERS
TO DO
HISTORY
LINKS
FEEDBACK
MAILING LIST
ADVERTISING

support cronolog development



Google   HELP


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rotating logs after midnight



>>>>> "Sascha" == Sascha Klauder <sascha@xxxxxxxxxx> writes:
Sascha> Can I setup cronolog in a way to have the logs rotated at
Sascha> 04:00am each day rather than at midnight?
Alter the timezone that cronolog(1) uses to be -4 from yours.
Ie, if you are in, eg, UTC+1 then specify --time-zone=-0300 to
cronolog.  You do need to change this come daylight/summer time,
unless you can find a named zone which follows the same start/end
conventions as yours.
The other alternative is to just hack the source.
That said, I always found that my users prefered rotates to happen at
00:00 localtime.  Even using UTC was flamed.  (The users in that case
were all paying customers, and so were right.)
-JimC
-- 
James H. Cloos, Jr.  <URL:http://jhcloos.com/public_key> 1024D/ED7DAEA6 
<cloos@xxxxxxxxxxx>  E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
   Like this email?  Click here: <URL:http://jhcloos.com/twocentsworth>
        Save Trees:  Get E-Gold! <URL:http://jhcloos.com/go?e-gold>

Copyright © 1996-2010 Andrew Ford and Ford & Mason Ltd