-
Notifications
You must be signed in to change notification settings - Fork 461
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
4bac0cb
commit 416a4af
Showing
1 changed file
with
1 addition
and
25 deletions.
There are no files selected for viewing
26 changes: 1 addition & 25 deletions
26
docker/images/dotcms/ROOT/srv/OVERRIDE/WEB-INF/log4j/log4j2.xml
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 |
---|---|---|
@@ -1,37 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="INFO"> | ||
|
||
|
||
<Properties> | ||
<Property name="DOTCMS_LOG_FILE">${sys:catalina.home}/logs/dotcms.log</Property> | ||
<Property name="DOTCMS_FILENAME_PATTERN">${sys:catalina.home}/logs/archive/dotcms-%i.log.gz</Property> | ||
<Property name="MESSAGE_PATTERN">[%d{dd/MM/yy HH:mm:ss:SSS z}] %5p %c{2}: %m%n</Property> | ||
</Properties> | ||
<Appenders> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %logger{2} - %msg%n" /> | ||
<PatternLayout pattern="[%d{dd/MM/yy HH:mm:ss:SSS z}] %5p %c{2}: %m%n" /> | ||
</Console> | ||
<Async name="generic"> | ||
<AppenderRef ref="GENERIC-FILE"/> | ||
</Async> | ||
|
||
<!-- Generic Logging File --> | ||
<RollingFile name="GENERIC-FILE" | ||
fileName="${DOTCMS_LOG_FILE}" | ||
filePattern="${DOTCMS_FILENAME_PATTERN}" | ||
immediateFlush="false"> | ||
<PatternLayout pattern="${MESSAGE_PATTERN}"/> | ||
<Policies> | ||
<SizeBasedTriggeringPolicy size="20MB"/> | ||
</Policies> | ||
<DefaultRolloverStrategy max="10"/> | ||
</RollingFile> | ||
|
||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<AppenderRef ref="Console" /> | ||
<AppenderRef ref="generic"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |