Geneos


The end of life (EOL) date for this module is on 31 January, 2020.

Client Logging

The Open Access API client jar has been written to log using SLF4J. It can integrate with existing logging in your code or use the optional Logback implementation we ship with the client.

Using the shipped implementation

The Logback logging implementation is shipped in the logging folder in the client distribution. To use this framework, simply add logback-core, logback-classic and the logging folder itself to your Java classpath at runtime. This is detailed in /get_started/run_examples.

The configuration can be modified in logging/logback.xml. See the Configuration documentation for more information.

Integrating with existing logging

If your code already contains an SLF4J implementation, it will be picked up and used automatically by the Open Access code.

Troubleshooting no logging

If you are seeing no logging from the API, check the initial output when you first run your program. If you see something similar to below:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

verify that a logging implementation is on your classpath as per above.