RE: Sequence numbers for LoggingEvents

2007-12-05 Thread Scott Deboy
If I recall there was a sequence number added to loggingevent in the 1.3 codebase, but that was taken out a while ago. You can modify logging events before they're processed by appenders by using the org.apache.log4j.rewrite package in the 'receivers' companion. Create your own rewritepolicy im

Datasource settings in config file for jdbcappender.

2007-12-05 Thread srinivas ramgopal
Hi all, A newbie question - Is there a way to avoid hard coding of the database connection values in the JDBCAppender in log4j.xml? In other words, can a datasource be referenced in log4j.xml? Any pointers to code snippets is highly appreciated. Thanks in advance for yout valuable input. -- V

Sequence numbers for LoggingEvents

2007-12-05 Thread Paul Duffy
Folks, I have an application that is likely to produce LoggingEvents on identical millisecond epochs. Thus I also need a sequence number to unambiguously determine event order. Is there any facility by which I can also include a montonically increasing sequence number in the event? I went