Skip to content

Commit

Permalink
+ elf4j-engine version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
q3769 committed Apr 13, 2024
1 parent 7bcc638 commit e5a2251
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<groupId>io.github.elf4j</groupId>
<artifactId>jpl-elf4j</artifactId>
<version>8.1.0</version>
<version>8.2.0</version>
<packaging>jar</packaging>
<name>jpl-elf4j</name>
<description>Native logging service provider implementation of ELF4J (Easy Logging Facade For Java)
Expand Down Expand Up @@ -68,7 +68,7 @@
<dependency>
<groupId>io.github.elf4j</groupId>
<artifactId>elf4j-engine</artifactId>
<version>15.1.2</version>
<version>15.2.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -188,7 +188,7 @@
<configuration>
<java>
<palantirJavaFormat>
<version>2.40.0</version> <!-- optional -->
<version>2.43.0</version>
<style>PALANTIR</style> <!-- or AOSP/GOOGLE (optional) -->
<formatJavadoc>true
</formatJavadoc> <!-- defaults to false (optional, requires at least Palantir 2.39.0) -->
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/elf4j/engine/jpl/Elf4jLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
import java.util.Objects;
import java.util.ResourceBundle;
import java.util.function.Supplier;
import lombok.NonNull;
import lombok.Value;

/** */
/** A Java 9 Logger implemented via elf4j-engine */
@Value
public class Elf4jLogger implements System.Logger {
private static final Class<?> SERVICE_INTERFACE_CLASS = Elf4jLogger.class;
String name;
NativeLogger nativeLogger;

private static elf4j.Level translate(Level level) {
private static elf4j.Level translate(@NonNull Level level) {
switch (level) {
case INFO:
return elf4j.Level.INFO;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/elf4j/engine/jpl/Elf4jLoggerFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import java.util.HashMap;
import java.util.Map;

/** */
/** Finds a Java 9 Logger implemented via elf4j-engine */
public class Elf4jLoggerFinder extends System.LoggerFinder {
private static final Class<System> SERVICE_ACCESS_CLASS = System.class;
private final NativeLogServiceProvider nativeLogServiceProvider;
private final Map<String, Elf4jLogger> elf4jLoggers = new HashMap<>();

/** Default constructor required by {@link java.util.ServiceLoader} */
/** A default constructor required by {@link java.util.ServiceLoader} */
public Elf4jLoggerFinder() {
this(new NativeLogServiceProvider(SERVICE_ACCESS_CLASS));
}
Expand Down

0 comments on commit e5a2251

Please sign in to comment.