Skip to content

Commit eb4312e

Browse files
committed
#52 - Change to use AppLog.getLogger() rather than directly using System.getLogger()
1 parent 9f1f86b commit eb4312e

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

client/pom.xml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323

2424
<dependencies>
2525

26+
<dependency>
27+
<groupId>io.avaje</groupId>
28+
<artifactId>avaje-applog</artifactId>
29+
<version>1.0</version>
30+
</dependency>
31+
2632
<dependency>
2733
<groupId>com.fasterxml.jackson.core</groupId>
2834
<artifactId>jackson-databind</artifactId>
@@ -46,10 +52,17 @@
4652

4753
<!-- test dependencies -->
4854

55+
<!-- <dependency>-->
56+
<!-- <groupId>io.avaje</groupId>-->
57+
<!-- <artifactId>avaje-slf4j-jpl</artifactId>-->
58+
<!-- <version>1.1</version>-->
59+
<!-- <scope>test</scope>-->
60+
<!-- </dependency>-->
61+
4962
<dependency>
5063
<groupId>io.avaje</groupId>
51-
<artifactId>avaje-slf4j-jpl</artifactId>
52-
<version>1.1</version>
64+
<artifactId>avaje-applog-slf4j</artifactId>
65+
<version>1.0</version>
5366
<scope>test</scope>
5467
</dependency>
5568

client/src/main/java/io/avaje/http/client/DHttpApi.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package io.avaje.http.client;
22

3+
import io.avaje.applog.AppLog;
4+
35
import java.util.HashMap;
46
import java.util.Map;
57
import java.util.ServiceLoader;
@@ -11,7 +13,7 @@
1113
*/
1214
final class DHttpApi {
1315

14-
private static final System.Logger log = System.getLogger("io.avaje.http.client");
16+
private static final System.Logger log = AppLog.getLogger("io.avaje.http.client");
1517

1618
private static final DHttpApi INSTANCE = new DHttpApi();
1719

client/src/main/java/io/avaje/http/client/RequestLogger.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package io.avaje.http.client;
22

3+
import io.avaje.applog.AppLog;
4+
35
import java.lang.System.Logger.Level;
46
import java.net.http.HttpHeaders;
57
import java.net.http.HttpRequest;
@@ -26,7 +28,7 @@
2628
*/
2729
public class RequestLogger implements RequestListener {
2830

29-
private static final System.Logger log = System.getLogger("io.avaje.http.client.RequestLogger");
31+
private static final System.Logger log = AppLog.getLogger("io.avaje.http.client.RequestLogger");
3032

3133
private final String delimiter;
3234

client/src/main/java/io/avaje/http/client/SimpleRetryHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package io.avaje.http.client;
22

3+
import io.avaje.applog.AppLog;
4+
35
import java.lang.System.Logger.Level;
46
import java.net.http.HttpResponse;
57
import java.util.Random;
@@ -9,7 +11,7 @@
911
*/
1012
public class SimpleRetryHandler implements RetryHandler {
1113

12-
private static final System.Logger log = System.getLogger("io.avaje.http.client");
14+
private static final System.Logger log = AppLog.getLogger("io.avaje.http.client");
1315

1416
private final int maxRetries;
1517
private final long backoffMillis;

client/src/main/java/module-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
uses io.avaje.http.client.HttpApiProvider;
44

55
requires transitive java.net.http;
6+
requires transitive io.avaje.applog;
67
requires static com.fasterxml.jackson.databind;
78
requires static com.fasterxml.jackson.annotation;
89
requires static com.fasterxml.jackson.core;

0 commit comments

Comments
 (0)