Mark,
Do I need to specify a special flag in layout for MDC to work?
BTW - I have found only Beta version of 1.2
Regards
Janusz

-----Original Message-----
From: Mark Womack [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 4:37 AM
To: 'Log4J Users List'
Subject: RE: partitioning log4j into sub-systems


Do your subsystems run in their own thread?  If so, one option might be
to
set the NDC (nested diagnostic context) value to the sub-system value
and
then filter the messages to different appenders based on the NDC value.
The
categories would still use their same logging names, but the NDC would
track
the subsystem in which they are being used.  With the release of v1.2
you
might want to take a look at using MDC insated of NDC.

-Mark

-----Original Message-----
From: Janusz Dalecki [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 7:21 PM
To: [EMAIL PROTECTED]
Subject: partitioning log4j into sub-systems


We have a very big system, with plenty of classes and sub-projects. I
would like to configure log4j in such a way that categories are not
particular classes (as it is now) but sub-systems (one class can belong
to a few sub-systems) - is there any other way of doing that then
introducing a property for every single class - let's say loggerName
that would then be set at run-time to the sub-system's logger name to
log messages in that category?.

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

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


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

Reply via email to