-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
885486e
commit e16baa2
Showing
7 changed files
with
69 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,4 @@ book2.json | |
bodleian-service-test.log | ||
*gz | ||
.gradle | ||
logs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration> | ||
<Properties> | ||
<Property name="LOG_PATTERN"> | ||
%d{yyyy-MM-dd HH:mm:ss.SSS} --- thread_id="%tid" thread_name="%tn" thread_priority="%tp" --- [%p] %m%n | ||
</Property> | ||
<Property name="CONSOLE_PATTERN"> | ||
%style{%d{ISO8601}}{black} [%highlight{%-5level }] [%style{%t}{bright,blue}] %style{%C{1.}}{bright,yellow}: %m%n%throwable | ||
</Property> | ||
</Properties> | ||
<Appenders> | ||
<RollingFile name="RollingName" filename="logs/app.log" | ||
filePattern="logs/$${date:yyyy-MM}/app-%d{yyyy-MM-dd}-%i.log"> | ||
<JSONLayout compact="true" eventEol="true" properties="true" stacktraceAsString="true" | ||
includeTimeMillis="true"/> | ||
<Policies> | ||
<OnStartupTriggeringPolicy/> | ||
<SizeBasedTriggeringPolicy size="5 MB"/> | ||
<TimeBasedTriggeringPolicy/> | ||
</Policies> | ||
</RollingFile> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<ThresholdFilter level="info"/> | ||
<PatternLayout pattern="${CONSOLE_PATTERN}"/> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Logger name="org.koenighotze" level="debug"/> | ||
<Logger name="org.springframework" level="debug"/> | ||
<Root level="warn"> | ||
<AppenderRef ref="RollingName"/> | ||
<AppenderRef ref="Console"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration> | ||
<Properties> | ||
<Property name="CONSOLE_PATTERN"> | ||
%style{%d{ISO8601}}{black} [%highlight{%-5level }] [%style{%t}{bright,blue}] %style{%C{1.}}{bright,yellow}: %m%n%throwable | ||
</Property> | ||
</Properties> | ||
<Appenders> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="${CONSOLE_PATTERN}"/> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Logger name="org.koenighotze" level="debug"/> | ||
<Logger name="org.springframework" level="info"/> | ||
<Logger name="org.hibernate.type" level="debug"/> | ||
<Logger name="org.hibernate.stat" level="debug"/> | ||
<Root level="warn"> | ||
<AppenderRef ref="Console"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |