on 10-13-2008 2:38 PM
Hi,
I am implementing saplogging, my 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>
and in my class I am implementing like this.
private static Category catLogger = null;
catLogge=Category.getCategoryCategory.APPS_COMMON, "myLogAP");
catLogger.errorT(...,...,...);
It is not creating any file by name MyLog.0.log
But if I use
catLogger.addLog(new FileLog("./log/applications/MyLog.%g.log"));
it is creating file and puttion logs into it. i dont think its a good practice to use the second one.
I want to get name only from log-configuration.xml.
Please put your suggession and comments
Regards
Abhijith YS
HI,
Try,
turn off 'ForceSingleTraceFile' in visual admin
visual admin->global configuration->kernal->log manager.
but second method of yours is also good
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 | |
9 | |
7 | |
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.