Skip to content

Commit 7a6ec82

Browse files
rbygraveSentryMan
andauthored
remove applog (#115)
Co-authored-by: Josiah Noel <[email protected]>
1 parent 81e0647 commit 7a6ec82

File tree

8 files changed

+12
-25
lines changed

8 files changed

+12
-25
lines changed

avaje-jex/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414

1515
<dependencies>
1616

17-
<dependency>
18-
<groupId>io.avaje</groupId>
19-
<artifactId>avaje-applog</artifactId>
20-
<version>1.0</version>
21-
</dependency>
22-
2317
<dependency>
2418
<groupId>io.avaje</groupId>
2519
<artifactId>avaje-config</artifactId>

avaje-jex/src/main/java/io/avaje/jex/DefaultLifecycle.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package io.avaje.jex;
22

3-
import io.avaje.applog.AppLog;
4-
53
import java.lang.System.Logger.Level;
6-
import java.nio.file.Path;
74
import java.util.ArrayList;
85
import java.util.Collections;
96
import java.util.List;
@@ -13,7 +10,7 @@
1310

1411
final class DefaultLifecycle implements AppLifecycle {
1512

16-
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
13+
private static final System.Logger log = System.getLogger("io.avaje.jex");
1714

1815
private final List<Pair> shutdownRunnable = new ArrayList<>();
1916
private final ReentrantLock lock = new ReentrantLock();

avaje-jex/src/main/java/io/avaje/jex/core/BootstrapServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.sun.net.httpserver.HttpServer;
44
import com.sun.net.httpserver.HttpsServer;
5-
import io.avaje.applog.AppLog;
5+
66
import io.avaje.jex.AppLifecycle;
77
import io.avaje.jex.Jex;
88
import io.avaje.jex.JexConfig;
@@ -19,7 +19,7 @@
1919

2020
public final class BootstrapServer {
2121

22-
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
22+
private static final System.Logger log = System.getLogger("io.avaje.jex");
2323

2424
public static Jex.Server start(Jex jex) {
2525
final var config = jex.config();

avaje-jex/src/main/java/io/avaje/jex/core/CoreServiceManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import java.util.Map;
1515
import java.util.stream.Stream;
1616

17-
import io.avaje.applog.AppLog;
1817
import io.avaje.jex.Context;
1918
import io.avaje.jex.Jex;
2019
import io.avaje.jex.Routing;
@@ -28,7 +27,7 @@
2827
*/
2928
final class CoreServiceManager implements SpiServiceManager {
3029

31-
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
30+
private static final System.Logger log = System.getLogger("io.avaje.jex");
3231
static final String UTF_8 = "UTF-8";
3332

3433
private final HttpMethodMap methodMap = new HttpMethodMap();

avaje-jex/src/main/java/io/avaje/jex/core/ExceptionManager.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package io.avaje.jex.core;
22

3-
import static java.lang.System.Logger.Level.WARNING;
3+
import static java.lang.System.Logger.Level.ERROR;
44

55
import java.util.Map;
66

7-
import io.avaje.applog.AppLog;
87
import io.avaje.jex.Context;
98
import io.avaje.jex.ExceptionHandler;
109
import io.avaje.jex.http.ErrorCode;
@@ -15,7 +14,7 @@ final class ExceptionManager {
1514

1615
private static final String APPLICATION_JSON = "application/json";
1716

18-
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
17+
private static final System.Logger log = System.getLogger("io.avaje.jex");
1918

2019
private final Map<Class<?>, ExceptionHandler<?>> handlers;
2120

@@ -52,7 +51,7 @@ void handle(JdkContext ctx, Exception e) {
5251
}
5352

5453
private void unhandledException(JdkContext ctx, Exception e) {
55-
log.log(WARNING, "Uncaught exception", e);
54+
log.log(ERROR, "Uncaught exception", e);
5655
defaultHandling(ctx, new InternalServerErrorException(ErrorCode.INTERNAL_SERVER_ERROR.message()));
5756
}
5857

avaje-jex/src/main/java/io/avaje/jex/core/JdkJexServer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package io.avaje.jex.core;
22

3+
import java.lang.System.Logger.Level;
4+
35
import com.sun.net.httpserver.HttpServer;
4-
import io.avaje.applog.AppLog;
6+
57
import io.avaje.jex.AppLifecycle;
68
import io.avaje.jex.Jex;
79

8-
import java.lang.System.Logger.Level;
9-
1010
final class JdkJexServer implements Jex.Server {
1111

12-
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
12+
private static final System.Logger log = System.getLogger("io.avaje.jex");
1313

1414
private final HttpServer server;
1515
private final AppLifecycle lifecycle;

avaje-jex/src/main/java/io/avaje/jex/routes/Routes.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
import java.util.concurrent.atomic.AtomicLong;
77
import java.util.concurrent.locks.LockSupport;
88

9-
import io.avaje.applog.AppLog;
109
import io.avaje.jex.HttpFilter;
1110
import io.avaje.jex.Routing;
1211

1312
final class Routes implements SpiRoutes {
1413

15-
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
14+
private static final System.Logger log = System.getLogger("io.avaje.jex");
1615

1716
/**
1817
* The "real" handlers by http method.

avaje-jex/src/main/java/module-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
requires transitive java.net.http;
3131
requires transitive jdk.httpserver;
32-
requires transitive io.avaje.applog;
3332
requires static com.fasterxml.jackson.core;
3433
requires static com.fasterxml.jackson.databind;
3534
requires static io.avaje.jsonb;

0 commit comments

Comments
 (0)