From b7764ad97c74763af50f99db17e9489111e0c982 Mon Sep 17 00:00:00 2001 From: LiLi Date: Wed, 19 Apr 2017 09:01:46 +0800 Subject: [PATCH] test --- jenkins-exec/logs/test.log.2017-04-18 | 0 jenkins-exec/src/main/resources/log4j.properties | 13 ++++++++----- .../src/test/java/cn/lili/test/GameBridgeTest.java | 6 +++--- 3 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 jenkins-exec/logs/test.log.2017-04-18 diff --git a/jenkins-exec/logs/test.log.2017-04-18 b/jenkins-exec/logs/test.log.2017-04-18 new file mode 100644 index 0000000..e69de29 diff --git a/jenkins-exec/src/main/resources/log4j.properties b/jenkins-exec/src/main/resources/log4j.properties index 6952589..0c33acf 100644 --- a/jenkins-exec/src/main/resources/log4j.properties +++ b/jenkins-exec/src/main/resources/log4j.properties @@ -1,20 +1,23 @@ -### 设置### -log4j.rootLogger =INFO, stdout ,logDailyFile -### 输出信息到控制抬 ### +### \u8BBE\u7F6E### +log4j.rootLogger = debug,stdout,logDailyFile + +### \u8F7ES\u4F47\u4FE1\u5F41\u4F48\u5F4E\u4F48\u5F4A ### log4j.appender.stdout = org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target = System.out log4j.appender.stdout.layout = org.apache.log4j.PatternLayout #log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n log4j.appender.stdout.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} %m%n +log4j.logger.org.springframework=INFO + + log4j.appender.logDailyFile = org.apache.log4j.DailyRollingFileAppender log4j.appender.logDailyFile.layout = org.apache.log4j.PatternLayout log4j.appender.logDailyFile.layout.ConversionPattern = %n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n -log4j.appender.logDailyFile.Threshold = INFO +log4j.appender.logDailyFile.Threshold = DEBUG log4j.appender.logDailyFile.ImmediateFlush = TRUE log4j.appender.logDailyFile.Append = TRUE log4j.appender.logDailyFile.File = ./logs/test.log log4j.appender.logDailyFile.DatePattern = '.'yyyy-MM-dd log4j.appender.logDailyFile.Encoding = UTF-8 -log4j.logger.org.springframework=INFO diff --git a/jenkins-exec/src/test/java/cn/lili/test/GameBridgeTest.java b/jenkins-exec/src/test/java/cn/lili/test/GameBridgeTest.java index 4c05d40..be7136b 100644 --- a/jenkins-exec/src/test/java/cn/lili/test/GameBridgeTest.java +++ b/jenkins-exec/src/test/java/cn/lili/test/GameBridgeTest.java @@ -104,10 +104,10 @@ public class GameBridgeTest { public static void main(String[] args) throws UnsupportedEncodingException { GameBridgeTest gameBridgeTest=new GameBridgeTest(); -// gameBridgeTest.generatePipelineScriptForChallenge(); + gameBridgeTest.generatePipelineScriptForChallenge(); // gameBridgeTest.openGameInstance(); // gameBridgeTest.buildJobForInstance(); - gameBridgeTest.testopenGameInstanceAndBuildJobForInstance(); +// gameBridgeTest.testopenGameInstanceAndBuildJobForInstance(); } /** @@ -162,7 +162,7 @@ public class GameBridgeTest { * @throws UnsupportedEncodingException * @see [类、类#方法、类#成员] */ - @Test +// @Test public void openGameInstance() throws UnsupportedEncodingException { String path = "/game/openGameInstance"; logger.info(path);