-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added log4j2 support to Docker images (#272)
- Loading branch information
1 parent
68792fe
commit a95ba36
Showing
9 changed files
with
123 additions
and
107 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
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,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="INFO"> | ||
|
||
<!-- Logging Properties --> | ||
<Properties> | ||
<Property name="LOG_PATTERN">%d{ISO8601_OFFSET_DATE_TIME_HHCMM} %p %c{1.} %m%n</Property> | ||
<!-- Docker images mount 'data' as volume --> | ||
<Property name="APP_LOG_ROOT">data/logs</Property> | ||
<Property name="LOG_NAME">stubby4j</Property> | ||
</Properties> | ||
|
||
<Appenders> | ||
|
||
<!-- Console Appender --> | ||
<Console name="LogToConsole" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="${LOG_PATTERN}"/> | ||
</Console> | ||
|
||
<!-- Rolling Random Access File Appender --> | ||
<RollingRandomAccessFile name="LogToRollingFile" fileName="${APP_LOG_ROOT}/${LOG_NAME}.log" | ||
filePattern="${APP_LOG_ROOT}/${LOG_NAME}-%d{MM-dd-yyyy}-%i.log.gz"> | ||
<PatternLayout pattern="${LOG_PATTERN}"/> | ||
<Policies> | ||
<TimeBasedTriggeringPolicy/> | ||
<SizeBasedTriggeringPolicy size="10240KB"/> | ||
</Policies> | ||
<DefaultRolloverStrategy max="10"/> | ||
</RollingRandomAccessFile> | ||
|
||
</Appenders> | ||
|
||
<Loggers> | ||
<!-- Avoid duplicated logs with additivity=false --> | ||
<Logger name="io.github.azagniotov.stubby4j" level="DEBUG" additivity="false"> | ||
<AppenderRef ref="LogToRollingFile"/> | ||
<AppenderRef ref="LogToConsole"/> | ||
</Logger> | ||
|
||
<Root level="INFO"/> | ||
</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