Skip to Content
0
Nov 02, 2018 at 05:49 PM

NetWeaver Java AS Logger ignores Protocol Configuration logger importance settings

117 Views Last edit Nov 08, 2018 at 03:59 PM 5 rev

I want to be able to manipulate the logger detalization of my Java NetWeaver application.

In order to do that I use com.sap.tc.logging.SimpleLogger class and provide different severity values.

SimpleLogger.log(
  Severity.INFO, Category.APPLICATIONS, LOG_LOCATION, "", logMsg
);

SimpleLogger.log(  Severity.ERROR, Category.APPLICATIONS, LOG_LOCATION, "", logMsg
);

SimpleLogger.log(
  Severity.WARNING, Category.APPLICATIONS, LOG_LOCATION, "", logMsg);

In NetWeaver Java AS Protocol Configuration for the specific servlets I specified the Trace Locations importance as Warning and Info but when I execute the application only messages with the severity Error appears in the Log Viewer.

My question, why neither Warning nor Info logs lines don't appear in the logger?

Of course, I checked the filter in Log Viewer, it accepts all events.