Skip to content

Commit

Permalink
#34 - Use AppLog.getLogger() rather than System.getLogger() to allow …
Browse files Browse the repository at this point in the history
…customization
  • Loading branch information
rbygrave committed Jul 26, 2022
1 parent 980b990 commit 6a1e6d3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
17 changes: 15 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@

<dependencies>

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

<!-- If snakeyaml detected it will be used rather than built in simple parser -->
<dependency>
<groupId>org.yaml</groupId>
Expand All @@ -46,10 +52,17 @@
<scope>test</scope>
</dependency>

<!-- <dependency>-->
<!-- <groupId>io.avaje</groupId>-->
<!-- <artifactId>avaje-slf4j-jpl</artifactId>-->
<!-- <version>1.1</version>-->
<!-- <scope>test</scope>-->
<!-- </dependency>-->

<dependency>
<groupId>io.avaje</groupId>
<artifactId>avaje-slf4j-jpl</artifactId>
<version>1.1</version>
<artifactId>avaje-applog-slf4j</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/avaje/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.Optional;
import java.util.Properties;
import java.util.function.Consumer;
import io.avaje.applog.AppLog;

/**
* Provides application Configuration based on loading properties and yaml files
Expand All @@ -30,7 +31,7 @@
*/
public class Config {

static final System.Logger log = System.getLogger("io.avaje.config");
static final System.Logger log = AppLog.getLogger("io.avaje.config");

private static final Configuration data = CoreConfiguration.initialise();

Expand Down
1 change: 1 addition & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

exports io.avaje.config;

requires transitive io.avaje.applog;
requires static org.yaml.snakeyaml;

uses io.avaje.config.ConfigurationSource;
Expand Down

0 comments on commit 6a1e6d3

Please sign in to comment.