|
Re: Logging Enhydra user access/statistics: msg#00029java.enhydra.general
Darius Katz wrote: Hi!AFAIK, this is not possible. If you can, wait for Enhydra 5.1 and the log4j integration : log4j is much more powerful than the StandardLogger... If you can't wait, don't log to a file, but to StdErr, and pipe the output of Enhydra either to syslog with logger (if you're under unix), or through a script/program like rotatelogs, distributed with apache. It handles nicely the job of rotating the logs for you : $ /usr/sbin/rotatelogs --help Usage: /usr/sbin/rotatelogs <logfile> <rotation time in seconds> [offset minutes from UTC] Add this: TransferLog "|/usr/sbin/rotatelogs /some/where 86400" to httpd.conf. The generated name will be /some/where.nnnn where nnnn is the system time at which the log nominally starts (N.B. this time will always be a multiple of the rotation time, so you can synchronize cron scripts with it). At the end of each rotation time a new log is started.
-- Frederic Garzon <Frederic.Garzon@xxxxxxxx> --------------------------------------------- o 51, rue de Verdun / _ __ _ 92158 Suresnes cedex / /\ /_ / /_ France \/ \/_ / /_/ Tel. +33 (0) 1 41 44 85 45 Inetsys S.A. Fax +33 (0) 1 46 97 20 10
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Logging Enhydra user access/statistics, Stefan Armbruster |
|---|---|
| Next by Date: | Re: Logging Enhydra user access/statistics, Darius Katz |
| Previous by Thread: | Re: Logging Enhydra user access/statistics, Darius Katz |
| Next by Thread: | Re: Logging Enhydra user access/statistics, Darius Katz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |