Hi Bender,
Three different Loggers, each with their own Appenders as configured
(preferably) through separate property files. Utilize standard appenders
as configured. I'll rename 'ErrorLogger' to 'CodeLogger' to avoid
confusion.
i.e.
AuditLogger configured through securitylog.properties
--append to SMTP at ERROR severity
--append to file at WARN severity
CodeLogger through errorlog.properties
--append to IM at ERROR Severity
--append to JDBC at WARN severity
Etc....
And have within my application calling these loggers for the events I
specify, within same class.
auditlog.error("unexpected source address");
codelog.warn("business method X marked as deprecated was called");
Hopefully this makes it a little more clearer! :-)
-D
> -----Original Message-----
> From: Bender Heri [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 12, 2005 11:30 AM
> To: Log4J Users List
> Subject: RE: Multiple loggers, same application?
>
> Darren
>
> you must make more clear what you want to achieve:
>
> Do you want only three different destinations (appenders) to log to?
> Or do you want three different loggers, each one with his own
> set of appenders?
> What is the kind of the desired appenders?
> How do you want to distinguish the different log-entries,
> only by log level or what?
>
> Depending on the answers to this questions there are
> different approaches.
>
> Heri
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]