close

使用log4j寫log時候,因有網路交換,會產生下列的log。目前的解法:

主程式加上: System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");

CookieSpec selected: default
Auth cache not set in the context
Connection request: [route: {}->http://127.0.0.1:7055][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
Connection leased: [id: 0][route: {}->http://127.0.0.1:7055][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
Opening connection {}->http://127.0.0.1:7055
Connecting to /127.0.0.1:7055
Connection established 127.0.0.1:60418<->127.0.0.1:7055
Executing request POST /hub/session HTTP/1.1
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
http-outgoing-0 >> POST /hub/session HTTP/1.1
http-outgoing-0 >> Content-Type: application/json; charset=utf-8
http-outgoing-0 >> Content-Length: 105
http-outgoing-0 >> Host: 127.0.0.1:7055
http-outgoing-0 >> Connection: Keep-Alive
http-outgoing-0 >> User-Agent: Apache-HttpClient/4.4.1 (Java/1.8.0_45)
http-outgoing-0 >> Accept-Encoding: gzip,deflate
http-outgoing-0 >> "POST /hub/session HTTP/1.1[\r][\n]"
http-outgoing-0 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
http-outgoing-0 >> "Content-Length: 105[\r][\n]"
http-outgoing-0 >> "Host: 127.0.0.1:7055[\r][\n]"
http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.4.1 (Java/1.8.0_45)[\r][\n]"
http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
http-outgoing-0 >> "[\r][\n]"
http-outgoing-0 >> "{"desiredCapabilities":{"browserName":"firefox","version":"","platform":"ANY"},"requiredCapabilities":{}}"
http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
http-outgoing-0 << "content-type: application/json; charset=UTF-8[\r][\n]"
http-outgoing-0 << "connection: close[\r][\n]"
http-outgoing-0 << "content-length: 423[\r][\n]"
http-outgoing-0 << "server: httpd.js[\r][\n]"
http-outgoing-0 << "date: Fri, 10 Jul 2015 21:26:28 GMT[\r][\n]"
http-outgoing-0 << "[\r][\n]"
http-outgoing-0 << HTTP/1.1 200 OK
http-outgoing-0 << content-type: application/json; charset=UTF-8
http-outgoing-0 << connection: close
http-outgoing-0 << content-length: 423
http-outgoing-0 << server: httpd.js
http-outgoing-0 << date: Fri, 10 Jul 2015 21:26:28 GMT
http-outgoing-0 << "{"name":"newSession","sessionId":"e549ecda-786d-48cd-b095-ffb3de89d200","status":0,"value":{"cssSelectorsEnabled":true,"browserName":"firefox","handlesAlerts":true,"javascriptEnabled":true,"nativeEvents":false,"platform":"WINDOWS","rotatable":false,"takesScreenshot":true,"version":"38.0.5","webStorageEnabled":true,"applicationCacheEnabled":true,"databaseEnabled":true,"locationContextEnabled":true,"acceptSslCerts":true}}"
http-outgoing-0: Shutdown connection
Connection discarded
http-outgoing-0: Close connection
Connection released: [id: 0][route: {}->http://127.0.0.1:7055][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
CookieSpec selected: default
Auth cache not set in the context
Connection request: [route: {}->http://127.0.0.1:7055][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
Connection leased: [id: 1][route: {}->http://127.0.0.1:7055][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
Opening connection {}->http://127.0.0.1:7055
Connecting to /127.0.0.1:7055
Connection established 127.0.0.1:60422<->127.0.0.1:7055
Executing request POST /hub/session/e549ecda-786d-48cd-b095-ffb3de89d200/url HTTP/1.1
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 抹茶獅子 的頭像
    抹茶獅子

    抹茶控的Wonderland

    抹茶獅子 發表在 痞客邦 留言(0) 人氣()