Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

connection with log-config.xml and userLog class

Hi,

I am implementing saplogging in j2ee component,

in the class i have written

private static Category catLogger = null;

catLogge=Category.getCategoryCategory.APPS_COMMON, "myLogAP");

catLogger.errorT(...,...,...);

log-configuration.xml looks like this.

<log-formatters>

<log-formatter

name="DefaultFormatter"

type="ListFormatter"/>

</log-formatters>

<log-destinations>

<log-destination

count="5"

effective-severity="ALL"

limit="80000"

name="MyLog4Log"

pattern="./log/applications/MyLog.%g.log" type="FileLog"/>

<log-controllers>

<log-controller

effective-severity="ALL"

maximum-severity="ALL"

minimum-severity="ALL"

name="/Applications/myLogAP">

<associated-destinations>

<destination-ref association-type="LOG" name="MyLog4Log"/>

</associated-destinations>

</log-controller>

it is not creating log file. is there any thing i need to write extra in the class

Please put your suggession and comments to help me in moving with this.

Regards

Abhijith YS

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question