Skip to content

jboss-logging/commons-logging-jboss-logmanager

Apache Commons Logging

This is a fork of Apache Commons Logging based on version 1.2 which delegates to the JBoss Log Manager. The reason for the fork is to avoid caching class loaders and get around issues with retrieving class loaders if a security manager is used.

Usage

Maven

<dependency>
    <groupId>org.jboss.logmanager</groupId>
    <artifactId>jboss-commons-logging-jboss-logmanager</artifactId>
    <version>${version.org.jboss.commons-logging-jboss-logmanager}</version>
</dependency>

Implementation

No configuration options are supported.

The LogFactory.setAttribute(String, Object) is supported however the value type must be a string. The map will be cleared when the any of the LogFactory.release() methods are invoked.

The SimpleLog and NoOpLog are available and should work if you use the implementations directly. However there is not much use in them. They were added only for possible compatibility issues.

Unsupported Operations

Some of the operations, such as diagnostics logging, are not supported in this implementation.

The following operations are not supported:

  • LogFactory.getClassLoader(Class)

  • LogFactory.getContextClassLoader()

  • LogFactory.directGetContextClassLoader()

  • LogFactory.newFactory(String, ClassLoader, ClassLoader)

  • LogFactory.newFactory(String, ClassLoader)

  • LogFactory.isDiagnosticsEnabled()

  • LogFactory.logRawDiagnostic(String)

Contributing

About

An implementation of Apache Commons Logging that delegates to JBoss Log Manager

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages