logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Serodio <dan...@checkforte.com.br>
Subject Re: Creating the rotated log files even if there is no accesses
Date Fri, 24 Jan 2003 15:05:48 GMT
We use FileAppender and roll it over with a crontab job, along the lines
of:

cp $logfile $logfile-$(date -I) && cat /dev/null > $logfile

Hope this helps.

[]'s
Daniel Serodio

On Fri, 2003-01-24 at 11:49, Nuno Carvalho wrote:
> Daniel Serodio wrote:
> 
> > On Fri, 2003-01-24 at 10:54, Nuno Carvalho wrote:
>  >
> > Well, you can always report that there were 0 hits on a day when no log
> > file was generated.
> 
> Olá Daniel,
> 
> The marketing team already have some kind of a shell script to check for specific log
filenames. Therefore, I need to 
> provide the expected behaviour they need.
> 
> Any idea on how to solve this ? Is there some way to call a rollover function ?
> 
> Regards,
>    Nuno Carvalho
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>
-- 
Daniel Serodio <daniel@checkforte.com.br>
CheckForte


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message