Skip to content

Migrate to use System.Logger rather than SLF4J-API (better support for jlink / module-path) #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rbygrave opened this issue Feb 25, 2022 · 0 comments
Assignees
Milestone

Comments

@rbygrave
Copy link
Contributor

This migrates to use the Java System.Logger API rather than slf4j-api.

This reduces the dependencies for this library and more specifically makes it easier for people wanting to use jlink and module-path as slf4j-api 1.7 only has automatic module name and not a module-info (and slf4j-api 2.x is still alpha).

This change messages logged to System.Logger will by default go to JUL unless there is something registered.

If you already have a JUL bridge then you don't need to do anything and log messages will already go via that path.

Otherwise, we can use:

    <dependency>
      <groupId>io.avaje</groupId>
      <artifactId>avaje-slf4j-jpl</artifactId>
      <version>1.0</version>
    </dependency>

... to have the log messages sent to slf4j-api and then onto whatever logging backend is setup.

@rbygrave rbygrave self-assigned this Feb 25, 2022
rbygrave added a commit that referenced this issue Feb 25, 2022
@rbygrave rbygrave added this to the 1.15 milestone Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant