-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c43365d
commit 552df9d
Showing
5 changed files
with
109 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
= Yupiik Logging | ||
|
||
This repository provides some logging utilities for logging. | ||
|
||
For now it mainly provides a Java Util Logging (JUL) LogManager which is graal friendly - you can reconfigure your JUL loggers at runtime - plus some utilities like mor advanced formatters or handlers. | ||
|
||
For more information, read xref:yupiik-logging-jul/README.adoc#_yupiik_logging_jul_integration[JUL Integration] documentation. | ||
See link:https://yupiik.github.io/yupiik-logging/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
= Java Util Logging (JUL) integration | ||
:minisite-index: 300 | ||
:minisite-index-title: GraalVM | ||
:minisite-index-description: How to use it to have reconfigurable JUL/SLF4j loggers. | ||
:minisite-index-icon: fighter-jet | ||
|
||
== Usage with GraalVM | ||
|
||
Yupiik Logging JUL is integrated with GraalVM native image feature. | ||
To enable it you must set in `native-image` command line the following system property: `-Djava.util.logging.manager=io.yupiik.logging.jul.YupiikLogManager`. | ||
Other required setup is done in the jar and automatically picked up by `native-image`. | ||
|
||
NOTE: yupiik-logging-jul will set itself as JUL LogManager during the build time so ensure it does not compete with another logging framework. | ||
|
||
Once done you can run with no logging configuration or override it through the standard `java.util.logging.config.file` system property. | ||
|
||
== Arthur Integration | ||
|
||
To use this module with link:https://geronimo.apache.org/arthur/[Arthur] you can use this configuration: | ||
|
||
[source,xml] | ||
---- | ||
<plugin> <!-- mvn [package] -Parthur arthur:native-image -e --> | ||
<groupId>org.apache.geronimo.arthur</groupId> | ||
<artifactId>arthur-maven-plugin</artifactId> | ||
<version>1.0.1</version> | ||
<configuration> | ||
<graalVersion>20.3.0.r11</graalVersion> | ||
<main>com.app.YourMain</main> | ||
<graalExtensions> <!-- if you also want slf4j support through JUL --> | ||
<graalExtension>slf4j</graalExtension> | ||
</graalExtensions> | ||
<customOptions> <!-- this is what enables Yupiik JUL support --> | ||
<customOption>-Djava.util.logging.manager=io.yupiik.logging.jul.YupiikLogManager</customOption> | ||
</customOptions> | ||
</configuration> | ||
</plugin> | ||
---- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
= Yupiik Logging Overview | ||
:minisite-index: 100 | ||
:minisite-index-title: Overview | ||
:minisite-index-description: What is Yupiik logging library about. | ||
:minisite-index-icon: highlighter | ||
|
||
This project provides some logging utilities. | ||
|
||
It mainly provides a Java Util Logging (JUL) LogManager which is graal friendly - you can reconfigure your JUL loggers at runtime - plus some utilities like mor advanced formatters or handlers. | ||
|
||
For more information, read xref:jul-integration.adoc#_java_util_logging_jul_integration[JUL Integration] documentation. | ||
|