on 12-11-2008 2:38 PM
Hello,
i now want to use the sap logging instead of using system.err.println() in my EJBs;
for this my bean is defined as:
public class KMTestBean implements KMTestLocal {
private static final com.sap.tc.logging.Location logger =
com.sap.tc.logging.Location.getLocation(KMTestBean.class);
......
public String findResource(String rid)
{
logger.entering();
logger.logT(Severity.DEBUG,"Start findResource");
System.err.println("Start putFileData");
.... // do something
logger.exiting();
}
}
but when running, i only see the output of my System.err.println, Not my logger-Messages in the Log-Viewer of the Netweaver 7.1 CE-Admin Log-Viewer.
Any ideas?
regards
Matthias
Here is a Web AS 6.40/7.0 guide, which may give you an idea on how to set it up for 7.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can see it in "usr/sap/CE1/J01/j2ee/cluster/server0/<your log dir>/<log_file_name.log>"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
see description in my last entry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
unfortunatly it is not descriped in the NW 7.1CE documentation how to configure the logging, but only the way to use logging in coding.
i now found out how to configure logging NW 7.1CE
First you have to start the NW-Administrator-Webpage.
Than you go to: Problem-Management->Logs and Traces->Log Configuration
Under Drop-Down-Selectbox "Show", you can select if you want to see/configure Log-Settings (Categories) or Trace-Settings (Locations). In the table of that page you see a hierachical tree of Categories (when configure Log-Settings) or Locations (when configure Locations and in my case (look code example in my thread opener) the tree applies to the package hierarchy of the traced Class)
In the righ side of that table you see the severities which are logged/traced. The default here is "Error". Due that my trace-entries had the severity "debug" or "Info" (or for the logger.entering() and logger.exiting() it is "path"), it was not written to the Log/Trace.
regards
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.