cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure log level on the local SAP NW Neo server?

Former Member
0 Kudos

Hi,

Logging is a breeze to start using in SAP NW Neo apps.

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

final Logger logger = LoggerFactory.getLogger(FeedResource.class);

(ref https://help.netweaver.ondemand.com/default.htm?topic6.html)

It logs to the file

<eclipse_workspace>\Servers\SAP NetWeaver Neo for Local Testing at localhost-config\log\ljs_trace.log

(accessible by rightclicking the server in eclipse and selecting More->View Log File

However, I am do not know where I am able to configure which log level to display on the local SAP NW Neo Server.

(SLF4J doesn't have an API for doing change from code either)

Any tips ?

Regards

Dagfinn

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

We still have not dedicated tools about logging configuration in Eclipse. It's in the plan, but not here yet.

I guess that when you followed the SLF4J Manual you used the slf4j-simple-1.6.4.jar implementation. As stated in the manual:

Binding for Simple implementation, which outputs all events to System.err. Only messages of level INFO and higher are printed. This binding may be useful in the context of small applications.

If you want to configure the log level, you should use a more functional implementation - like slf4j-jdk14-1.6.4.jar. If you use this one then you can configure the log level in the following configuration file:

<eclipse_workspace>\Servers\SAP NetWeaver Neo for Local Testing at localhost-config\config_master\com.sap.js.logging\logging.cfg

You can either change the log level of the root logger, or just the level of the FeedResource logger by adding an additional configuration line in this file.

Greetings,

Kaloyan

P.S. By the way, there is in easier way to access the log file. Right-click on the local server in the Servers view, then choose More > View Log File.

Former Member
0 Kudos

Update: The Neo Console Client now provides commands for changing the log levels of applications deployed in the cloud.

Check the documentation: https://help.netweaver.ondemand.com/default.htm?configure_logging.html

Former Member
0 Kudos

Update 2: We added some logging capabilities to the Eclipse Tools. Check here: https://help.netweaver.ondemand.com/default.htm?loggers_levels_ide.html

Answers (1)

Answers (1)

Former Member
0 Kudos

Dagfinn - you seem to have gotten logging working easily. Maybe you could guide me on the question I just posted:

http://scn.sap.com/thread/3230627

Ryan