Berin Loritsch <[EMAIL PROTECTED]> writes:
[...]
>As a result all modern Avalon Containers (i.e. Fortress, Merlin, and
>Phoenix) allow you to customize the logger category name for the component in
>question. Even ECM provides some support for that.
Ok. Can you show me a code snipped of how to do this? I'm quite happy
with the fact that I can get a log file like this from an application
(this is from Turbine, but the Torque code is the same):
2003-06-23 00:49:55,438 [HttpProcessor[8080][3]] INFO
org.apache.turbine.services.BaseServiceBroker - Added Mapping for Service:
TemplateService
2003-06-23 00:49:55,438 [HttpProcessor[8080][3]] INFO
org.apache.turbine.services.BaseServiceBroker - Added Mapping for Service:
VelocityService
2003-06-23 00:49:55,443 [HttpProcessor[8080][3]] INFO
org.apache.turbine.services.BaseServiceBroker - Start Initializing service (early):
AvalonComponentService
(i.e. Date, Thread, Level, Category). So I can separate these out by
the thread if I want to debug an event sequence or by Category if I
want to debug a certain component. I found out that if I don't put
some marker for the class into the log, then sooner or later I will
start to add a this.getClass().getName() to the logging messages to
make sure that I found the right "Started!" or "Got here!" marker. :-)
>If you are not using one of the three (Fortress and Phoenix are officially
>released, while Merlin is not released yet but is functional), then you should
>modify your container to allow you to customize your logger categories for
>the components.
Well, I somehow "inherited" the code which uses ECM. :-) I'd be going
to another container in a second if it isn't too complicated. Being
not too heavyweight would be another plus. Any recommendations for me?
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
[EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
--- Quote of the week: "It is pointless to tell people anything when
you know that they won't process the message." --- Jonathan Revusky
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]