Skip to content

morgwai/jul-utils

Repository files navigation

JUL utils

java.util.logging utilities.
Copyright 2021 Piotr Morgwai Kotarbinski, Licensed under the Apache License, Version 2.0.

latest release: 4.3 (javadoc)

See CHANGES for the summary of changes between releases. If the major version of a subsequent release remains unchanged, it is supposed to be backwards compatible in terms of API and behaviour with previous ones with the same major version (meaning that it should be safe to just blindly update in dependent projects and things should not break under normal circumstances).

MAIN USER CLASSES

Utilities to manipulate java.util.logging config, including overriding log Levels with system properties in existing apps without rebuilding.

Text log Formatter similar to SimpleFormatter that additionally allows to format stack-trace elements and add log sequence id and Thread id to log entries.

LogManager that does not get reset() automatically at JVM shutdown to avoid losing logs from user shutdown hooks. See a usage example here (notice the static initializer a few lines below).