forked from apache/struts
-
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.
WW-4492 Add support for Log4J2 as a struts and xwork logging backend
- Use log4j2 in the struts2 blank maven archetype
- Loading branch information
Showing
4 changed files
with
37 additions
and
58 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
29 changes: 0 additions & 29 deletions
29
...rchetype-blank/src/main/resources/archetype-resources/src/main/resources/log4j.properties
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...uts2-archetype-blank/src/main/resources/archetype-resources/src/main/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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration> | ||
<Appenders> | ||
<Console name="STDOUT" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Logger name="com.opensymphony.xwork2" level="info"/> | ||
<Logger name="org.apache.struts2" level="info"/> | ||
<Logger name="\${groupId}" level="debug"/> | ||
<Root level="warn"> | ||
<AppenderRef ref="STDOUT"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |