on 04-04-2007 9:57 AM
Hi,
I have created an adapter module and want to log statements. The log configuration for my application archive is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
<log-formatters>
<log-formatter
name="trc"
pattern="%26d %150l [%t] %10s: %m"
type="TraceFormatter"/>
</log-formatters>
<log-destinations>
<log-destination
count="5"
effective-severity="ALL"
limit="2000000"
name="my.test.sample.trc"
pattern="./log/applications/my.test.sample/default.trc"
type="FileLog">
<formatter-ref
name="trc"/>
</log-destination>
</log-destinations>
<log-controllers>
<log-controller
effective-severity="ALL"
name="my.test.sample">
<associated-destinations>
<destination-ref
association-type="LOG"
name="my.test.sample.trc"/>
</associated-destinations>
</log-controller>
</log-controllers>
</log-configuration>
My bean implementation is located in the package: my.test.sample and named TestmoduleBean
The version id of my bean implementation is:
$Id: //tc/aii/30_VAL_REL/src/_adapters/_testmodulebean/java/my/test/sample/TestmoduleBean.java#4 $
No log is written. Could anybody tell me what's wrong here?
Thank you and kind regards,
Heiko
Hi Heiko,
Adding to Michal's reply, also check this blog on logging. You may get some help from it:
/people/amjad-ali.khoja/blog/2005/12/16/slaw-a-new-logging-tracing-framework-for-xi
Regards,
Subhasha Ranjan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
did you cross check with:
http://help.sap.com/saphelp_nw04/helpdata/en/a2/15ab41d60bcb46e10000000a155106/content.htm
BTW
when I implemened this logging to VA I remember I had a problem with
deploying via VA or via NDWS (one of them didn't want to accept log
configuration changes) but maybe it was my fault
anyway I managed to log to VA files
the best thing about it is that you can control logging level from VA
via log config service
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.