1. Modify the parameters of the Finesse runtime in Build.xml
1 <Targetname= "Run"depends= "Compile, compile-bootstrap-less, retrieve"Description= "Start fitnesse from the command line">2 <Ivy:cachepathPathid= "Standalone.classpath"conf= "standalone"/>3 <JavaClassName= "Fitnessemain.fitnessemain"Fork= "true"FailOnError= "true">4 <Argvalue= "-O" />5 <Argvalue= "-V" />6 <arg value= "-L"/> //Add parameter-L 7< arg value= "E:\\fitnesse\\workspace\\fitnesse-master\\log"/> //Add log Output destination directory 8 <Argvalue= "-P" />9 <Argvalue= "${port}" />Ten One A <Classpath> - <PathrefID= "Standalone.classpath"/> - <pathelement Location= "${classes.dir}"/> the </Classpath> - - </Java> - </Target>
2. Restart FitNesse
3. Executing Use Cases
4. Enter E:\fitnesse\workspace\fitnesse-master\log and a Fitnesse20160708165006.log file will be generated in this directory
The contents are as follows:
1 0:0:0:0:0:0:0:1--[08/jul/2016:16:50:06 +0800] "" 20442 0:0:0:0:0:0:0:1--[08/jul/2016:16:50:06 +0800] "GET/ FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse.LogFiles http/1.1 "98293 0:0:0:0:0:0:0:1--[08/jul/2016:16:50:20 +0800] "get/fitnesse.userguide.twominuteexample http/1.1" 198624 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" 41445 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" 42558 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 3850Ten 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 One 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" 95957 A 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 "155256 - 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 - 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 the 0:0:0:0:0:0:0:1--[08/jul/2016:16:50:30 +0800] "GET/ FitNesse.UserGuide.WritingAcceptanceTests.SliM.DecisionTable http/1.1 "19214 - 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 - 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 - 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 + 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 - 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 + 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 A 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 at 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 - 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 - 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 - 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 - 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 - 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 in 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 - 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 to 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 + 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 - 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 the 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 * 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 $ 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 Panax Notoginseng 0:0:0:0:0:0:0:1--[08/jul/2016:16:50:35 +0800] "get/files/fitnesse/images/exception.png http/1.1" 3104 - 0:0:0:0:0:0:0:1--[08/jul/2016:16:50:35 +0800] "get/files/fitnesse/images/wrong.png http/1.1" 3145 the 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 +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//The access information is recorded here
FitNesse Access Log Configuration