Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/morgwai/jul-utils

java.util.logging utilities
https://github.com/morgwai/jul-utils

command-line-log-level java java-util-logging log-format log-level log-level-command-line log-level-system-property log-levels log-levels-system-properties system-properties-log-levels system-property-log-level

Last synced: about 1 month ago
JSON representation

java.util.logging utilities

Awesome Lists containing this project

README

        

# JUL utils

`java.util.logging` utilities.

Copyright 2021 Piotr Morgwai Kotarbinski, Licensed under the Apache License, Version 2.0.



**latest release: [4.2](https://search.maven.org/artifact/pl.morgwai.base/jul-utils/4.2/jar)**
([javadoc](https://javadoc.io/doc/pl.morgwai.base/jul-utils/4.2))

## MAIN USER CLASSES

### [JulConfigurator](https://javadoc.io/doc/pl.morgwai.base/jul-utils/latest/pl/morgwai/base/jul/JulConfigurator.html)
Utilities to manipulate `java.util.logging` config, including overriding log `Level`s with system properties in existing apps without rebuilding.

### [JulFormatter](https://javadoc.io/doc/pl.morgwai.base/jul-utils/latest/pl/morgwai/base/jul/JulFormatter.html)
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.

### [JulManualResetLogManager](https://javadoc.io/doc/pl.morgwai.base/jul-utils/latest/pl/morgwai/base/jul/JulManualResetLogManager.html)
`LogManager` that does not get `reset()` automatically at JVM shutdown to avoid losing logs from user shutdown hooks. See a usage example [here](https://github.com/morgwai/grpc-scopes/blob/v12.2/sample/src/main/java/pl/morgwai/samples/grpc/scopes/grpc/RecordStorageServer.java#L138) (notice the static initializer a [few lines below](https://github.com/morgwai/grpc-scopes/blob/v12.2/sample/src/main/java/pl/morgwai/samples/grpc/scopes/grpc/RecordStorageServer.java#L169-L174)).