Browse Source

1.修改日志级别
2.增加程序启动脚本

luxueshi 3 years ago
parent
commit
722df6ea35
2 changed files with 2 additions and 28 deletions
  1. 1 28
      src/main/resources/log4j.properties
  2. 1 0
      start-up.bat

+ 1 - 28
src/main/resources/log4j.properties

@@ -1,36 +1,9 @@
 #priority:debug<info<warn<error
-log4j.rootLogger=debug,stdout,info,debug,warn,error
+log4j.rootLogger=info,error,stdout
 #console
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=[%d{yyyy-MM-ddHH:mm:ssa}]:%p%l%m%n
-#info
-log4j.logger.info=info
-log4j.appender.info=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.info.DatePattern='_'yyyy-MM-dd'.log'
-log4j.appender.info.File=E:/minitor-logs/info.log
-log4j.appender.info.Append=true
-log4j.appender.info.Threshold=INFO
-log4j.appender.info.layout=org.apache.log4j.PatternLayout
-log4j.appender.info.layout.ConversionPattern=%d{yyyy-MM-ddHH:mm:ssa}[Thread:%t][Class:%c>>Method:%l]%n%p:%m%n
-##debug
-#log4j.logger.debug=debug
-#log4j.appender.debug=org.apache.log4j.DailyRollingFileAppender
-#log4j.appender.debug.DatePattern='_'yyyy-MM-dd'.log'
-#log4j.appender.debug.File=E:/minitor-logs/debug.log
-#log4j.appender.debug.Append=true
-#log4j.appender.debug.Threshold=DEBUG
-#log4j.appender.debug.layout=org.apache.log4j.PatternLayout
-#log4j.appender.debug.layout.ConversionPattern=%d{yyyy-MM-ddHH:mm:ssa}[Thread:%t][Class:%c>>Method:%l]%n%p:%m%n
-##warn
-#log4j.logger.warn=warn
-#log4j.appender.warn=org.apache.log4j.DailyRollingFileAppender
-#log4j.appender.warn.DatePattern='_'yyyy-MM-dd'.log'
-#log4j.appender.warn.File=E:/minitor-logs/warn.log
-#log4j.appender.warn.Append=true
-#log4j.appender.warn.Threshold=WARN
-#log4j.appender.warn.layout=org.apache.log4j.PatternLayout
-#log4j.appender.warn.layout.ConversionPattern=%d{yyyy-MM-ddHH:mm:ssa}[Thread:%t][Class:%c>>Method:%l]%n%p:%m%n
 #error
 log4j.logger.error=error
 log4j.appender.error=org.apache.log4j.DailyRollingFileAppender

+ 1 - 0
start-up.bat

@@ -0,0 +1 @@
+java -jar -Xms16m -Xmx32m sdk-minitor-1.0-RELEASE.jar