on 03-18-2005 8:54 AM
Hi,
i've defined the following log config as XML in the .ear file of my app:
-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
<log-formatters>
<log-formatter
name="de.axentiv.hne.format"
pattern="%l %d %s %m"
type="TraceFormatter"/>
</log-formatters>
<log-destinations>
<log-destination
effective-severity="ALL"
name="de.axentiv.hne"
pattern="c:\jms.log"
type="FileLog">
<formatter-ref
name="de.axentiv.hne.format"/>
</log-destination>
</log-destinations>
<log-controllers>
<log-controller
minimum-severity="ALL"
name="de.axentiv.hne">
<associated-destinations>
<destination-ref
association-type="LOG"
name="de.axentiv.hne"/>
</associated-destinations>
</log-controller>
</log-controllers>
</log-configuration>
-
I retrieve the logger:
private static final Location loc = Location.getLocation(JmsTestServlet.class);
JmsTestServlet.class resides in the package de.axentiv.hne which corresponds to the log destination defined above.
My logging statement is:
loc.debugT("***> Sending message: Test");
Unfortunately there is no file at c:\jms.log which contains my log statement. Does anybody know what my problem here might be.
Regards in advance and thank's
Heiko
Hi Heiko,
by default the logging api writes to a single trace file (defaultTrace.trc). This is done for performance reasons. At times though (and I would always suggest this on your local J2EE Engine), you want multiple trace files...one for each app.
I did a presentation on how to configure the J2EE Engine to do this. You can see the pdf of this presentation here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/using logging and tracing on the sap web as java.pdf
Hope this helps!
Cheers,
Jeff
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.