forked from harp077/pj-net-tools
-
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.
- Loading branch information
Showing
10 changed files
with
862 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler | ||
.level=INFO | ||
############ | ||
java.util.logging.FileHandler.level=INFO | ||
java.util.logging.FileHandler.pattern = log/app.log | ||
java.util.logging.FileHandler.limit = 999000 | ||
java.util.logging.FileHandler.count = 3 | ||
java.util.logging.FileHandler.append = true | ||
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter | ||
############ | ||
java.util.logging.ConsoleHandler.level =INFO | ||
java.util.logging.ConsoleHandler.formatter =java.util.logging.SimpleFormatter | ||
############# |
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,15 @@ | ||
log4j.debug=false | ||
log4j.rootLogger=INFO, FILE, CONSOLE | ||
############## | ||
log4j.appender.FILE=org.apache.log4j.RollingFileAppender | ||
log4j.appender.FILE.File=log/app.log | ||
log4j.appender.FILE.maxFileSize=999KB | ||
log4j.appender.FILE.maxBackupIndex=1 | ||
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.FILE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | ||
############# | ||
############### | ||
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender | ||
log4j.appender.CONSOLE.Encoding=utf-8 | ||
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.CONSOLE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n |
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,25 @@ | ||
<!DOCTYPE log4j:configuration PUBLIC | ||
"-//APACHE//DTD LOG4J 1.2//EN" | ||
"http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd"> | ||
<log4j:configuration debug="false"> | ||
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> | ||
<param name="Encoding" value="utf-8"/> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n"/> | ||
</layout> | ||
</appender> | ||
<appender name="FILE" class="org.apache.log4j.RollingFileAppender"> | ||
<param name="File" value="log/app.log"/> | ||
<param name="maxFileSize" value="999KB"/> | ||
<param name="maxBackupIndex" value="1"/> | ||
<param name="Encoding" value="utf-8"/> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n"/> | ||
</layout> | ||
</appender> | ||
<root> | ||
<priority value="INFO"/> | ||
<appender-ref ref="CONSOLE"/> | ||
<appender-ref ref="FILE"/> | ||
</root> | ||
</log4j: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
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
Oops, something went wrong.