Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Logging with JDK logging

The Apache Log4j package is used as standard for logging in BeanConnect products. Since the BeanConnect resource adapter runs in an application server, it is possible that Log4j should/may not be used in the server environment.

To solve this problem, the BeanConnect Logging Framework is used at all points within the resource adapter. This logging framework is based on the Apache Jakarta Commons Logging package with BeanConnect specific extensions.

The BeanConnect Logging Framework supports the following logging packages as standard:

  • Apache Log4j

  • Java Logging API

Logging with Apache Log4j is the default setting. It is used if you do not make any changes to the BeanConnect RAR archive supplied with the resource adapter.

To use Java Logging, proceed as follows

  • Delete the file BeanConnectLog4j.jar from the resource adapter's BeanConnect RAR archive.

JDK logging functions in a similar way to Log4j, see Basic principles of Log4j .

You must enter the BeanConnect-specific logger manually in a JDK logging configuration file. For a description of JDK logging, refer to the Java documentation under http://docs.oracle.com/javase/8/docs/technotes/guides/logging/overview.html