Logging configuration

All Versions
Error formatting macro: expand: com.atlassian.core.exception.InfrastructureException: Error occurred rendering template content

XACML Core 1.0.0-M1
XACML Core 1.0.0-M2 (Snapshot)

HERASAF XACML Core 1.0.0-M2

The HERAS-AF XACML Core component uses the logging façade SLF4J (http://www.slf4j.org).
This small guide explains how to properly configure slf4j to work in your application.

On this page:

SLF4J basics

SLF4J is a logging façade that can handle multiple logging implementations. Currently SLF4J supports the following logging implementations:

  • logback
  • log4j
  • Jakarta Commons Logging
  • java.util.logging (JDK1.4 logging)

A programmer always uses the SLF4J API for programming the log-messages.

For a detailed description of the SLF4J API refer to the SLF4J manual -> http://www.slf4j.org/manual.html.

SLF4J bindings

SLF4J supports, as described above, multiple logging frameworks.
Logback (http://logback.qos.ch) is a direct implementation of the SLF4J API, therefore it is not necessary to do any binding.
Simply add the logback library to your classpath and SLF4J uses logback to log its logging messages.

Bind log4j, JCL or JDK1.4 logging

To bind log4j, JCL or JDK1.4 logging with SLF4J the corresponding library (e.g. log4j.jar) has to be put into the classpath. But here, additionally the SLF4J binding library has also to be put onto the classpath (e.g. slf4j-log4j12-1.5.10.jar).

For further information and details about binding logging frameworks to SLF4J have a look at the SLF4J manual -> http://www.slf4j.org/manual.html.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.