on 07-22-2008 12:14 AM
We have setup logging through NWDS for a WebDynpro for Java project. Not matter what we try, we can not get a log file written to the destination specified. Here is a log-configuration file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
<log-formatters>
<log-formatter
name="com.test.formatter"
pattern="%l %d %s %m"
type="TraceFormatter"/>
</log-formatters>
<log-destinations>
<log-destination
effective-severity="ALL"
name="com.test.log.dest.app"
pattern="\log\applications\CSS.log"
type="FileLog">
<formatter-ref
name="com.test.formatter"/>
</log-destination>
</log-destinations>
<log-controllers>
<log-controller
effective-severity="ALL"
maximum-severity="ALL"
minimum-severity="ALL"
name="com.test.custselfservice.wd">
<associated-destinations>
<destination-ref
association-type="LOG"
name="com.test.log.dest.app"/>
<anonymous-destination
association-type="LOG"
type="FileLog"/>
</associated-destinations>
</log-controller>
</log-controllers>
</log-configuration>
We are using the looger in the following code within a method which is always called.
logger.fatalT("searchCompanyNumber", "log test");
logger.exiting("searchCompanyNumber");
Does anyone know what we are doing wrong? Maximum points for the first helpful answer.
If you have deployed the application once without a log-configuration file, try by undeploying and re-deploying the application.. It worked for me. If you can see your application in Visual Admin's log configuration service, then everything is fine.
Thanks
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.