Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/morgwai/jul-utils
- Owner: morgwai
- License: apache-2.0
- Created: 2023-06-17T14:18:37.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-21T11:42:13.000Z (6 months ago)
- Last Synced: 2024-06-22T04:34:02.588Z (6 months ago)
- Topics: 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
- Language: Java
- Homepage:
- Size: 521 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)).