logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36384] Configuring triggering/rolling policies should be supported through properties
Date Wed, 06 Aug 2008 16:06:10 GMT

--- Comment #7 from Hugues Pisapia <hugues@labarben.org>  2008-08-06 09:06:09 PST ---
Created an attachment (id=22396)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22396)
patch to log4j's PropertySetter agaisnt today's code in trunk

Here is a quick patch I've been working on. It basically allows to configure
the appender with an object by providing a class name and then configure the
object via sub-properties.

I've been able to configure the rootLogger with the following properties:

#### ROOT category ###
log4j.rootLogger=DEBUG, ROOT
log4j.appender.ROOT.layout.ConversionPattern=%d{ABSOLUTE} [%t] %-5p %c - %m%n

And the log files was nicely rolling every minute and compressing the data.
Also the mvn build was working fine (excepted for one test that was not passing
before anyway).

I did not create a Unit test for that though. Point me in the right direction
if you need one, and I'll find some time to create it.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message