cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure the logging and tracing in J2EE-Server

Former Member
0 Kudos

Hi,

when I've been using the SAP Logging and Tracing Framework before from more or less "standalone" Applications I always used a property file which configured the levels of severity etc.. During application startup I've read this file and configured the logging properly.

In a J2EE-Environment (SAP WEB AS JAVA) I cannot read a file from a file - system. So I'm wondering where are those handlers and severity levels are configured ?

Any help is greatly appreciated.

Thanks in advance,

Frank

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Frank,

You can configure the logging using the Log Configurator service of the J2EE Engine (use the Visual Administrator tool to perform the configuration tasks). You can set severity levels, as well as do some editing of current log formatters, log destinations, etc.

For more information, please, refer to the logging/tracing documentation of the J2EE Engine: http://help.sap.com/saphelp_nw04/helpdata/en/b7/54e63f48e58f15e10000000a155106/frameset.htm

Hope that helps!

Former Member
0 Kudos

Thanks for your help.

But I have two more questions:

1. As I've read so far , the categories are usually predefined

2. What is going on with the locations ? For example I have a location called (for tracing purposes) com.sap.myproject.mycomponent.myclass , so how can I set the proper severity level in this Log Configurator Tool ?

How does knows Log Configurator know what locations I'm using in my application ?

Cheers,

Frank

Former Member
0 Kudos

OK, got it.

But thanks anyway !!!!

Former Member
0 Kudos

Hi Frank,

well, first of all, your application provides log configuration information using an XML file at deployment time. This file is called log-configuration.xml (you can see the DTD description here: http://help.sap.com/saphelp_nw04/helpdata/en/48/ef8748caed894bb4b3ae953a60c592/frameset.htm). There you can set configure log controllers, which could be two types: location and category. So, you can specify your location and severity there. This is described here: http://help.sap.com/saphelp_nw04/helpdata/en/35/671c0136b4714c9e1b16b68211287b/frameset.htm.

Then, after the application is deployed, the log configurations you provided for it are registered with the Log Configuration tool I mentioned about. Using this tool you can later on modify your configurations at runtime (for example, change the severity level) without having to redeploy the application.

I hope it's clearer now? I guess it was me not getting your first question correctly that caused your confusion.

Greetings,

Ivo

Former Member
0 Kudos

Thanks for your help Iva.

I really appreciate it !!!

Cheers,

Frank