You could try setting up a separate logger for the exceptions that
shouldn't go to the event log. Then disable additivity in that logger,
and attach only the file appender to it. That way, exceptions logged
through that logger will only go to the file and not the event log.

On 9/21/06, Amit Pathak <[EMAIL PROTECTED]> wrote:
Hi All,

I am new to log4j, We are using it for logging our project's exceptions
to File and Event log. Currently all the exceptions that are logged,
goes to both file as well as Event Log, and we would like to append all
of them to the file only. Certain exceptions should not goto the Event
Log. Can anybody help in this regards.



Thanks and Best Regards,

Amit Pathak





--
Javier González Nicolini

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to