on 07-31-2018 9:14 AM
In my application I use SimpleLogger to write logs:
The first function works correctly, while SimpleLogger.traceThrowable() doesn't seem to be writing any log at all, at least I can't find any log with the exceptions, written by traceThrowable() on https://HOSTNAME:PORT/nwa/logs.
I checked https://help.sap.com/saphelp_nw73/helpdata/en/48/470b83c7d0350ce10000000a42189d/frameset.htm and I can't spot any issue in my code.
Code snippet:
//works
SimpleLogger.log(logSevLvl, logCat, logLoc, logMsgID, logMsg);
//doesn't work
SimpleLogger.traceThrowable(logSevLvl, logLoc, logMsgID, logMsg, logExp);
Do you have any idea why I can't see any log, written by traceThrowable() in nwa/logs?
Hello Mike,
What log severity did You use? The issue may be that no logs generated on the set severity level or above. Try to change the severity to log more detailed information.
Zoltan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Addition:
You can set the trace severity in Configtool or in NWA or Visual Administrator depending on your NetWeaver JAVA version:
1771192 - (How-to) Log / Trace configuration for JAVA 7.1+ systems
1770670 - (How-to) Log / Trace configuration for JAVA 7.0
Zoltan
Hello Mike,
Sorry, check these links:
https://launchpad.support.sap.com/#/notes/1771192
https://launchpad.support.sap.com/#/notes/1770670
You can also also open them from SAP Launchpad by their number.
Anyways, You can change the log configurations here depending on your version:
Zoltan
To your initial question, I'm using Severity.ERROR to call the SimpleLogger.traceThrowable(). This severity level is enough to write the data with SimpleLogger.log().
I tried to use the most detailed severity level, based on a documentation, — Severity.DEBUG, but it still doesn't work.
Code snippet:
SimpleLogger.traceThrowable(Severity.DEBUG,
Location.getLocation(MyClass.class.getName()),
"NotificationText",
"TEST TRACE",
new Exception());
User | Count |
---|---|
77 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.