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.1 (javadoc)

MAIN USER CLASSES

Utilities to manipulate java.util.logging config, among others allows to override log levels with system properties in existing java apps without rebuilding: just add jul-utils.jar to your command-line class-path and define your desired properties.

A text log formatter similar to SimpleFormatter that additionally allows to format stack trace elements and to add log sequence id and thread id to log entries.

A LogManager that does not get reset() automatically at JVM shutdown. Useful if logs from user shutdown hooks are important. See a usage example here (notice the static initializer a few lines below).