cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: [C2 patch] appending to cocoon.log
Date Tue, 21 Aug 2001 11:51:19 GMT
Quoting "Piroumian, Konstantin" <KPiroumian@flagship.ru>:

> Hi, Marcus and all!
> 
> > Hi Vadim,
> >
> > On Sat, 18 Aug 2001, Vadim Gritsenko wrote:
> >
> > > Hm. Interesting question. :)
> > > I just modified this so it's compatible with other boolean settings.
> > > "True" might be overkill - next thing you know people will ask about
> internationalization ;)
> >
> > *nod* Point taken.
> >
> > I just noticed that log-format and show-time use equalsIgnoreCase() so
> > we already have a discrepancy there. :-(
> >
> > Just being picky herer, but the other thing is that (general with most
> > of the options):
> >
> > true equates to true, as expected
> > false equates to false, as expected
> >
> > with the current implementation,
> >
> > False also equates to false, as most would probably expect
> > FALSE also equates to false, as most would probably expect
> >
> > but
> >
> > True equates to false, not what most would expect
> > TRUE equates to false, not what most would expect
> >
> > This could cause some configuration woes for the unwary.
> >
> > Another general question here, the current implementation appends to
> > log files if the init parameter is not set (ie. if
> > getInitParameter("log-append") returns null) - do we want this to be
> > the case ?
> 
> Is it possible to have log files like in Tomcat (and Apache Web Server
> as
> well), when the log file name includes the time of creation or some
> other
> unique ID? In my opinion, there must be an option like 'create-new' (or
> do
> it by default, if no 'log-append' param found). In that case, your old
> log
> files won't be rewritten if you restart the server and you'll get a new
> log
> file for every instance (server restart).

This gets fixed as soon as the new LogKit is out. Carsten and others have 
contributed a lot of new FileTargets with log rotation strategies and file 
naming strategies. Also the LogKitManagement (which will be in excaliburs 
scratchpad soon) will enable you to specify a Logger per component. So, things 
get in the right directon but not as fast as people will except (voluntary work, 
alltogether)

Giacomo

> 
> >
> > Cheers,
> >
> > Marcus
> >
> 
> Regards,
>     Konstantin Piroumian
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message