You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jörg Prante d58d63a511 add README 3 days ago
.osv-scanner add Artifactory, PMD, CycloneDX BOM, OSV Scanner 6 days ago
gradle add README 3 days ago
logging allow overriding from system properties 5 days ago
logging-adapter-log4j add pmd, add subproject logging-ext, add missing @Override 3 weeks ago
logging-adapter-slf4j add pmd, add subproject logging-ext, add missing @Override 3 weeks ago
logging-ext add pmd, add subproject logging-ext, add missing @Override 3 weeks ago
.gitignore initial commit 3 weeks ago
LICENSE.txt initial commit 3 weeks ago
NOTICE.txt initial commit 3 weeks ago
README.md add README 3 days ago
build.gradle add README 3 days ago
gradle.properties initial commit 3 weeks ago
gradlew initial commit 3 weeks ago
gradlew.bat initial commit 3 weeks ago
settings.gradle add pmd, add subproject logging-ext, add missing @Override 3 weeks ago

README.md

This is a reimplementation of the JBoss Logmanager.

The implementation purpose of this project is to serve as a replacement for java.util.logging.Logmanager by defining java.util.logging.manager property on the java command line to overcome the weaknesses and strange defaults.

One notable weakness of the original JUL LogManager is that all loggers can be reset by any application. This LogManannger can not be modified after its initialization, a reset is simply ignored.

The following attributes of the original JBoss implementation have been changed:

  • build tool is Grade
  • new package org.xbib
  • the package structure has been reorganized
  • removed all license headers and authorships for clarity, this source code does not claim to be the original one
  • Usage of the Java Security Manager have been removed
  • Usage and declaration of deprecated code has been removed to the possible minimum
  • Usage of asserts have been removed (checks are always active)
  • Dependencies to external resources have been resolved, there are no external dependencies any more, making this implementation a single artifact
  • JPMS module description has been added
  • JSON logging has been removed
  • Formatters have been moved to an extension package to reduce the size of the required artifact
  • a new default formatter always adds the Java thread name in a single line formatted log message
  • it is possible to override the properties in the logging.properties resource file by a system property
  • there are just two adapters for redirecting log4j2 and slf4j to this log manager implementation

Usage

Define a Java command line like

java [...] -Djava.util.logging.manager=org.xbib.logging.LogManager [...]

and add the artifact to your project

Notes

The integrations tests are disabled and need to be repaired.

See NOTICE.txt for notes about provenance.

The license is Apache 2.0