Probably more of a facelift...
I've gone ahead and created a modified version of NTEventLogAppender since my last
email. Its a standalone implementation (separate package, inheritance hierarchy, dll
name) for right now, but will be implemented as a core extension submission when I
figure out the universal patch process.
The implementation should be backwards compatible with existing deployments using
NTEventLogAppender. In order to get the custom event id behavior the appender needs
to be configured.
o default event id can be configured (default = 4096)
o custom event id parsing can be turned on and off (default = off)
o if enabled, the event id is parsed from the msg passed to logger
-the format is assumed to be assumed to be: "{#}{delimiter}{message}"
-the delimiter is configurable (default = "|")
o the implementation supports custom event id's in the range 1-500
-----Original Message-----
From: Ceki G�lc� [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 15, 2004 4:48 AM
To: Log4J Developers List; [EMAIL PROTECTED]
Subject: Re: NTEventLogAppender event ID customization?
NTEventLogAppender has been neglected for a long time. Any face lifting or
even more serious overhaul would be highly appreciated.
At 11:39 PM 5/12/2004, Jon Russell wrote:
>Hi,
>
>I've seen a number of threads on the web about people wondering how to
>change the event id so that it isn't always 4096 when log4j logs to the
>Windows application log.
>
>I haven't seen anyone who has a solution to this problem that is a part of
>log4j. (And would be curious to know if one is planned?) As a result, my
>company will be making some customizations to allow individual events to
>be logged with an appropriate non-4096 event ID as necessary.
>
>Assuming this is an enhancement no one is working on now, I'd like to plan
>on submitting the source (java and dll) for consideration to be rolled
>into log4j.
>
>Thanks for your help,
>Jon
>______________________________________
>JON RUSSELL | Engineering Manager
><mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] |
>415-812-4504 (cell)
--
Ceki G�lc�
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]