Fitnesse 访问日志配置
1. 在build.xml中修改Finesse运行时的参数
1 <target name="run" depends="compile, compile-bootstrap-less, retrieve" description="Start FitNesse from the command line"> 2 <ivy:cachepath pathid="standalone.classpath" conf="standalone"/> 3 <java classname="fitnesseMain.FitNesseMain" fork="true" failonerror="true"> 4 <arg value="-o" /> 5 <arg value="-v" /> 6 <arg value="-l"/> //添加参数-l 7 <arg value="E:\\fitnesse\\workspace\\fitnesse-master\\log"/>//添加日志输出目标目录 8 <arg value="-p" /> 9 <arg value="${port}" /> 10 11 12 <classpath> 13 <path refid="standalone.classpath"/> 14 <pathelement location="${classes.dir}"/> 15 </classpath> 16 17 </java> 18 </target>
2. 重新启动Fitnesse
3. 执行用例
4. 进入E:\fitnesse\workspace\fitnesse-master\log,在该目录下将会生成一个fitnesse20160708165006.log文件
内容如下:
1 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:06 +0800] "" 400 2044 2 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:06 +0800] "GET /FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse.LogFiles HTTP/1.1" 200 9829 3 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /FitNesse.UserGuide.TwoMinuteExample HTTP/1.1" 200 19862 4 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/css/fitnesse_wiki.css HTTP/1.1" 200 4144 5 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/javascript/fitnesse.js HTTP/1.1" 200 7326 6 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/css/fitnesse_pages.css HTTP/1.1" 200 6119 7 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/wysiwyg/wysiwyg.css HTTP/1.1" 200 4255 8 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/bootstrap/js/respond.js HTTP/1.1" 200 9746 9 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/javascript/mousetrap.min.js HTTP/1.1" 200 3850 10 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/bootstrap/js/bootstrap.js HTTP/1.1" 200 68954 11 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/javascript/jquery-1.11.3.min.js HTTP/1.1" 200 95957 12 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/bootstrap/css/fitnesse-bootstrap.css HTTP/1.1" 200 155256 13 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/images/fitnesse-logo-small.png HTTP/1.1" 200 10408 14 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/bootstrap/img/minus-sign.png HTTP/1.1" 200 1222 15 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /FitNesse.UserGuide.WritingAcceptanceTests.SliM.DecisionTable HTTP/1.1" 200 19214 16 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/css/fitnesse_wiki.css HTTP/1.1" 304 0 17 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/bootstrap/css/fitnesse-bootstrap.css HTTP/1.1" 304 0 18 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/javascript/jquery-1.11.3.min.js HTTP/1.1" 304 0 19 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/css/fitnesse_pages.css HTTP/1.1" 304 0 20 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/wysiwyg/wysiwyg.css HTTP/1.1" 304 0 21 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/javascript/fitnesse.js HTTP/1.1" 304 0 22 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/javascript/mousetrap.min.js HTTP/1.1" 304 0 23 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/bootstrap/js/respond.js HTTP/1.1" 304 0 24 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/bootstrap/js/bootstrap.js HTTP/1.1" 304 0 25 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/images/fitnesse-logo-small.png HTTP/1.1" 304 0 26 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/bootstrap/img/plus-sign.png HTTP/1.1" 200 1289 27 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/css/fitnesse_wiki.css HTTP/1.1" 304 0 28 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/css/fitnesse_pages.css HTTP/1.1" 304 0 29 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/bootstrap/css/fitnesse-bootstrap.css HTTP/1.1" 304 0 30 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/javascript/jquery-1.11.3.min.js HTTP/1.1" 304 0 31 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/wysiwyg/wysiwyg.css HTTP/1.1" 304 0 32 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/javascript/fitnesse.js HTTP/1.1" 304 0 33 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/bootstrap/js/respond.js HTTP/1.1" 304 0 34 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/bootstrap/js/bootstrap.js HTTP/1.1" 304 0 35 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/images/fitnesse-logo-small.png HTTP/1.1" 304 0 36 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:34 +0800] "GET /files/fitnesse/bootstrap/img/plus-sign.png HTTP/1.1" 304 0 37 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:35 +0800] "GET /files/fitnesse/images/exception.png HTTP/1.1" 200 3104 38 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:35 +0800] "GET /files/fitnesse/images/wrong.png HTTP/1.1" 200 3145 39 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:35 +0800] "GET /files/fitnesse/javascript/mousetrap.min.js HTTP/1.1" 304 0 40 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:35 +0800] "GET /FitNesse.UserGuide.WritingAcceptanceTests.SliM.DecisionTable?test HTTP/1.1" 200 23316 // 这里就记录着访问信息
本文来自博客园,作者:月色深潭,交流群:733423266,转载请注明原文链接:https://www.cnblogs.com/moonpool/p/5654015.html