-
Notifications
You must be signed in to change notification settings - Fork 36
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
Showing
4 changed files
with
35 additions
and
4 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
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
30 changes: 30 additions & 0 deletions
30
src/main/resources/archetype-resources/__rootArtifactId__-test/src/test/resources/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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="error" monitorInterval="3600"> | ||
<properties> | ||
<property name="patternLayout">%d [%t] %-5p [%c] [%L] - %m%n</property> | ||
<property name="root.log.level">info</property> | ||
</properties> | ||
<Appenders> | ||
<Console name="console" target="SYSTEM_OUT" follow="true"> | ||
<PatternLayout charset="UTF-8" pattern="${patternLayout}"/> | ||
</Console> | ||
<File name="logFile" fileName="logs/app.log" append="false" immediateFlush="true"> | ||
<PatternLayout> | ||
<Pattern>${patternLayout}</Pattern> | ||
</PatternLayout> | ||
</File> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<Root level="${root.log.level}" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
<AppenderRef ref="logFile"/> | ||
</Root> | ||
<logger name="org.springframework" level="error" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</logger> | ||
<logger name="com.tngtech.archunit" level="error" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</logger> | ||
</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