Created
February 23, 2013 23:08
-
-
Save humus/5021764 to your computer and use it in GitHub Desktop.
Configuración de Log4j en proyecto web que usa spring
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd"> | |
| <log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/' debug="true"> | |
| <appender name="console" class="org.apache.log4j.ConsoleAppender"> | |
| <layout class="org.apache.log4j.PatternLayout"> | |
| <param name="ConversionPattern" value="%d %-5p [%t] %c - %m%n"/> | |
| </layout> | |
| </appender> | |
| <appender name="webplog" class="org.apache.log4j.RollingFileAppender"> | |
| <param name="File" value="webp.log"/> | |
| <param name="MaxFileSize" value="10MB"/> | |
| <param name="append" value="true"/> | |
| <param name="MaxBackupIndex" value="5"/> | |
| <layout class="org.apache.log4j.PatternLayout"> | |
| <param name="ConversionPattern" value="%d %-5p [%t] %c - %m%n"/> | |
| </layout> | |
| </appender> | |
| <logger name="org.springframework" additivity="false"> | |
| <level value="warn"/> | |
| <appender-ref ref="webplog"/> | |
| </logger> | |
| <root> | |
| <level value="warn" /> | |
| <appender-ref ref="console" /> | |
| </root> | |
| </log4j:configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment