Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/340.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 奇怪的行为;org.apache.log4j.Logger“;在爪哇_Java_Logging_Log4j - Fatal编程技术网

Java 奇怪的行为;org.apache.log4j.Logger“;在爪哇

Java 奇怪的行为;org.apache.log4j.Logger“;在爪哇,java,logging,log4j,Java,Logging,Log4j,我在做Maven项目。我用log4j做了一个日志。但是它在给定的文件中显示了一些starnge日志。我试着去理解,为什么会有这么奇怪的日志,但我不明白。请帮助我,为什么这些不需要的行会进入日志文件 请帮我取下这个 日志属性 # Define the root logger with appender file log = /usr/home/log4j log4j.rootLogger = DEBUG, FILE # Define the file appender log4j.appende

我在做Maven项目。我用log4j做了一个日志。但是它在给定的文件中显示了一些starnge日志。我试着去理解,为什么会有这么奇怪的日志,但我不明白。请帮助我,为什么这些不需要的行会进入日志文件

请帮我取下这个

日志属性

# Define the root logger with appender file
log = /usr/home/log4j
log4j.rootLogger = DEBUG, FILE

# Define the file appender
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=C:/Users/aMpliFieR/Desktop/log.txt

# Define the layout for file appender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.conversionPattern=%m%n
public class test {
    static Logger log = Logger.getLogger( test.class.getName() );

    public static void func(String url1, String url2) throws  InterruptedException {
        Threqad.sleep(100000000);  // Here is some process that performs recursively
        log.info( url1 + "\n" + url2 + "\n"+ ((double)loading_time)/((double)1000)+ " seconds   " + ((double)parsing_time)/((double)1000) +  " seconds   "  + ((double)processing_time)/((double)1000) + " seconds\n\n\n\n" );
    }

    public static void main(String[] args) throws InterruptedException{
            for(int i = 0; i < 5; i++) { func("ANY URL1", "ANY URL2");  }
    }
}
我通过阅读这个文件来创建这个文件

且代码为

# Define the root logger with appender file
log = /usr/home/log4j
log4j.rootLogger = DEBUG, FILE

# Define the file appender
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=C:/Users/aMpliFieR/Desktop/log.txt

# Define the layout for file appender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.conversionPattern=%m%n
public class test {
    static Logger log = Logger.getLogger( test.class.getName() );

    public static void func(String url1, String url2) throws  InterruptedException {
        Threqad.sleep(100000000);  // Here is some process that performs recursively
        log.info( url1 + "\n" + url2 + "\n"+ ((double)loading_time)/((double)1000)+ " seconds   " + ((double)parsing_time)/((double)1000) +  " seconds   "  + ((double)processing_time)/((double)1000) + " seconds\n\n\n\n" );
    }

    public static void main(String[] args) throws InterruptedException{
            for(int i = 0; i < 5; i++) { func("ANY URL1", "ANY URL2");  }
    }
}
公共类测试{
静态记录器log=Logger.getLogger(test.class.getName());
公共静态void func(字符串url1,字符串url2)引发InterruptedException{
Threqad.sleep(100000000);//下面是一些递归执行的进程
log.info(url1+“\n”+url2+“\n”+((双)加载时间)/((双)1000)+“秒”+((双)解析时间)/((双)1000)+“秒”+((双)处理时间)/((双)1000)+“秒”\n\n\n);
}
公共静态void main(字符串[]args)引发InterruptedException{
对于(int i=0;i<5;i++){func(“任意URL1”、“任意URL2”);}
}
}
Log.txt-(Log.txt的一些起始行)

Get connection: {}->http://127.0.0.1:7055, timeout = 120000
[{}->http://127.0.0.1:7055] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [{}->http://127.0.0.1:7055][null]
Available capacity: 2000 out of 2000 [{}->http://127.0.0.1:7055][null]
Creating new connection [{}->http://127.0.0.1:7055]
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /hub/session HTTP/1.1
>> "POST /hub/session HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Content-Length: 105[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"
>> POST /hub/session HTTP/1.1
>> Accept: application/json, image/png
>> Content-Type: application/json; charset=utf-8
>> Content-Length: 105
>> Host: 127.0.0.1:7055
>> Connection: Keep-Alive
>> "{"desiredCapabilities":{"platform":"ANY","browserName":"firefox","version":""},"requiredCapabilities":{}}"
<< "HTTP/1.1 303 See Other[\r][\n]"
<< "location: http://127.0.0.1:7055/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38[\r][\n]"
<< "connection: close[\r][\n]"
<< "content-length: 0[\r][\n]"
<< "server: httpd.js[\r][\n]"
<< "date: Wed, 10 Apr 2013 18:43:11 GMT[\r][\n]"
<< "[\r][\n]"
Receiving response: HTTP/1.1 303 See Other
<< HTTP/1.1 303 See Other
<< location: http://127.0.0.1:7055/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38
<< connection: close
<< content-length: 0
<< server: httpd.js
<< date: Wed, 10 Apr 2013 18:43:11 GMT
Redirect requested to location 'http://127.0.0.1:7055/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38'
Redirecting to 'http://127.0.0.1:7055/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38' via {}->http://127.0.0.1:7055
Connection 0.0.0.0:59145<->127.0.0.1:7055 closed
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 2 to execute request
Sending request: GET /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38 HTTP/1.1
>> "GET /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38 HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"
>> GET /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38 HTTP/1.1
>> Accept: application/json, image/png
>> Content-Type: application/json; charset=utf-8
>> Host: 127.0.0.1:7055
>> Connection: Keep-Alive
<< "HTTP/1.1 200 OK[\r][\n]"
<< "content-type: application/json; charset=UTF-8[\r][\n]"
<< "connection: close[\r][\n]"
<< "content-length: 462[\r][\n]"
<< "server: httpd.js[\r][\n]"
<< "date: Wed, 10 Apr 2013 18:43:11 GMT[\r][\n]"
<< "[\r][\n]"
Receiving response: HTTP/1.1 200 OK
<< HTTP/1.1 200 OK
<< content-type: application/json; charset=UTF-8
<< connection: close
<< content-length: 462
<< server: httpd.js
<< date: Wed, 10 Apr 2013 18:43:11 GMT
<< "{"name":"getSessionCapabilities","sessionId":"bfaec653-501a-401c-9b6a-227341e1fe38","status":0,"value":{"cssSelectorsEnabled":true,"browserName":"firefox","handlesAlerts":true,"javascriptEnabled":true,"nativeEvents":true,"platform":"WINNT","rotatable":false,"takesScreenshot":true,"version":"20.0","webStorageEnabled":true,"applicationCacheEnabled":true,"databaseEnabled":true,"locationContextEnabled":true,"browserConnectionEnabled":true,"acceptSslCerts":true}}"
Connection 0.0.0.0:59146<->127.0.0.1:7055 shut down
Released connection is not reusable.
Releasing connection [{}->http://127.0.0.1:7055][null]
Connection 0.0.0.0:59146<->127.0.0.1:7055 closed
Notifying no-one, there are no waiting threads
Get connection: {}->http://127.0.0.1:7055, timeout = 120000
[{}->http://127.0.0.1:7055] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [{}->http://127.0.0.1:7055][null]
Available capacity: 2000 out of 2000 [{}->http://127.0.0.1:7055][null]
Creating new connection [{}->http://127.0.0.1:7055]
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/url HTTP/1.1
>> "POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/url HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Content-Length: 74[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"
>> POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/url HTTP/1.1
>> Accept: application/json, image/png
>> Content-Type: application/json; charset=utf-8
>> Content-Length: 74
>> Host: 127.0.0.1:7055
>> Connection: Keep-Alive
>> "{"url":"http://www.jabong.com/men/shoes/men-loafers/?source=home-leftnav"}"
<< "HTTP/1.1 200 OK[\r][\n]"
<< "content-type: application/json; charset=UTF-8[\r][\n]"
<< "connection: close[\r][\n]"
<< "content-length: 87[\r][\n]"
<< "server: httpd.js[\r][\n]"
<< "date: Wed, 10 Apr 2013 18:43:21 GMT[\r][\n]"
<< "[\r][\n]"
Receiving response: HTTP/1.1 200 OK
<< HTTP/1.1 200 OK
<< content-type: application/json; charset=UTF-8
<< connection: close
<< content-length: 87
<< server: httpd.js
<< date: Wed, 10 Apr 2013 18:43:21 GMT
<< "{"name":"get","sessionId":"bfaec653-501a-401c-9b6a-227341e1fe38","status":0,"value":""}"
Connection 0.0.0.0:59147<->127.0.0.1:7055 shut down
Released connection is not reusable.
Releasing connection [{}->http://127.0.0.1:7055][null]
Connection 0.0.0.0:59147<->127.0.0.1:7055 closed
Notifying no-one, there are no waiting threads
Get connection: {}->http://127.0.0.1:7055, timeout = 120000
[{}->http://127.0.0.1:7055] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [{}->http://127.0.0.1:7055][null]
Available capacity: 2000 out of 2000 [{}->http://127.0.0.1:7055][null]
Creating new connection [{}->http://127.0.0.1:7055]
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> "POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Content-Length: 47[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"
>> POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> Accept: application/json, image/png
>> Content-Type: application/json; charset=utf-8
>> Content-Length: 47
>> Host: 127.0.0.1:7055
>> Connection: Keep-Alive
>> "{"args":[""],"script":"window.scrollBy(0,250)"}"
<< "HTTP/1.1 200 OK[\r][\n]"
<< "content-type: application/json; charset=UTF-8[\r][\n]"
<< "connection: close[\r][\n]"
<< "content-length: 99[\r][\n]"
<< "server: httpd.js[\r][\n]"
<< "date: Wed, 10 Apr 2013 18:43:34 GMT[\r][\n]"
<< "[\r][\n]"
Receiving response: HTTP/1.1 200 OK
<< HTTP/1.1 200 OK
<< content-type: application/json; charset=UTF-8
<< connection: close
<< content-length: 99
<< server: httpd.js
<< date: Wed, 10 Apr 2013 18:43:34 GMT
<< "{"name":"executeScript","sessionId":"bfaec653-501a-401c-9b6a-227341e1fe38","status":0,"value":null}"
Connection 0.0.0.0:59202<->127.0.0.1:7055 shut down
Released connection is not reusable.
Releasing connection [{}->http://127.0.0.1:7055][null]
Connection 0.0.0.0:59202<->127.0.0.1:7055 closed
Notifying no-one, there are no waiting threads
Get connection: {}->http://127.0.0.1:7055, timeout = 120000
[{}->http://127.0.0.1:7055] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [{}->http://127.0.0.1:7055][null]
Available capacity: 2000 out of 2000 [{}->http://127.0.0.1:7055][null]
Creating new connection [{}->http://127.0.0.1:7055]
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> "POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Content-Length: 47[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"
>> POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> Accept: application/json, image/png
>> Content-Type: application/json; charset=utf-8
>> Content-Length: 47
>> Host: 127.0.0.1:7055
>> Connection: Keep-Alive
>> "{"args":[""],"script":"window.scrollBy(0,200)"}"
<< "HTTP/1.1 200 OK[\r][\n]"
<< "content-type: application/json; charset=UTF-8[\r][\n]"
<< "connection: close[\r][\n]"
<< "content-length: 99[\r][\n]"
<< "server: httpd.js[\r][\n]"
<< "date: Wed, 10 Apr 2013 18:43:34 GMT[\r][\n]"
<< "[\r][\n]"
Receiving response: HTTP/1.1 200 OK
<< HTTP/1.1 200 OK
<< content-type: application/json; charset=UTF-8
<< connection: close
<< content-length: 99
<< server: httpd.js
<< date: Wed, 10 Apr 2013 18:43:34 GMT
<< "{"name":"executeScript","sessionId":"bfaec653-501a-401c-9b6a-227341e1fe38","status":0,"value":null}"
Connection 0.0.0.0:59281<->127.0.0.1:7055 shut down
Released connection is not reusable.
Releasing connection [{}->http://127.0.0.1:7055][null]
Connection 0.0.0.0:59281<->127.0.0.1:7055 closed
Notifying no-one, there are no waiting threads
Get connection: {}->http://127.0.0.1:7055, timeout = 120000
[{}->http://127.0.0.1:7055] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [{}->http://127.0.0.1:7055][null]
Available capacity: 2000 out of 2000 [{}->http://127.0.0.1:7055][null]
Creating new connection [{}->http://127.0.0.1:7055]
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> "POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Content-Length: 47[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"
>> POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> Accept: application/json, image/png
>> Content-Type: application/json; charset=utf-8
>> Content-Length: 47
>> Host: 127.0.0.1:7055
>> Connection: Keep-Alive
>> "{"args":[""],"script":"window.scrollBy(0,200)"}"
<< "HTTP/1.1 200 OK[\r][\n]"
<< "content-type: application/json; charset=UTF-8[\r][\n]"
<< "connection: close[\r][\n]"
<< "content-length: 99[\r][\n]"
<< "server: httpd.js[\r][\n]"
<< "date: Wed, 10 Apr 2013 18:43:36 GMT[\r][\n]"
<< "[\r][\n]"
Receiving response: HTTP/1.1 200 OK
<< HTTP/1.1 200 OK
<< content-type: application/json; charset=UTF-8
<< connection: close
<< content-length: 99
<< server: httpd.js
<< date: Wed, 10 Apr 2013 18:43:36 GMT
<< "{"name":"executeScript","sessionId":"bfaec653-501a-401c-9b6a-227341e1fe38","status":0,"value":null}"
Connection 0.0.0.0:59282<->127.0.0.1:7055 shut down
Released connection is not reusable.
Releasing connection [{}->http://127.0.0.1:7055][null]
Connection 0.0.0.0:59282<->127.0.0.1:7055 closed
Notifying no-one, there are no waiting threads
Get connection: {}->http://127.0.0.1:7055, timeout = 120000
[{}->http://127.0.0.1:7055] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [{}->http://127.0.0.1:7055][null]
Available capacity: 2000 out of 2000 [{}->http://127.0.0.1:7055][null]
Creating new connection [{}->http://127.0.0.1:7055]
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> "POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Content-Length: 47[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"
>> POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> Accept: application/json, image/png
>> Content-Type: application/json; charset=utf-8
>> Content-Length: 47
>> Host: 127.0.0.1:7055
>> Connection: Keep-Alive
>> "{"args":[""],"script":"window.scrollBy(0,200)"}"
<< "HTTP/1.1 200 OK[\r][\n]"
<< "content-type: application/json; charset=UTF-8[\r][\n]"
<< "connection: close[\r][\n]"
<< "content-length: 99[\r][\n]"
<< "server: httpd.js[\r][\n]"
<< "date: Wed, 10 Apr 2013 18:43:36 GMT[\r][\n]"
<< "[\r][\n]"
Receiving response: HTTP/1.1 200 OK
<< HTTP/1.1 200 OK
<< content-type: application/json; charset=UTF-8
<< connection: close
<< content-length: 99
<< server: httpd.js
<< date: Wed, 10 Apr 2013 18:43:36 GMT
<< "{"name":"executeScript","sessionId":"bfaec653-501a-401c-9b6a-227341e1fe38","status":0,"value":null}"
Connection 0.0.0.0:59283<->127.0.0.1:7055 shut down
Released connection is not reusable.
Releasing connection [{}->http://127.0.0.1:7055][null]
Connection 0.0.0.0:59283<->127.0.0.1:7055 closed
Notifying no-one, there are no waiting threads
Get connection: {}->http://127.0.0.1:7055, timeout = 120000
[{}->http://127.0.0.1:7055] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [{}->http://127.0.0.1:7055][null]
Available capacity: 2000 out of 2000 [{}->http://127.0.0.1:7055][null]
Creating new connection [{}->http://127.0.0.1:7055]
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> "POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Content-Length: 47[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"
>> POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> Accept: application/json, image/png
>> Content-Type: application/json; charset=utf-8
>> Content-Length: 47
>> Host: 127.0.0.1:7055
>> Connection: Keep-Alive
>> "{"args":[""],"script":"window.scrollBy(0,200)"}"
<< "HTTP/1.1 200 OK[\r][\n]"
<< "content-type: application/json; charset=UTF-8[\r][\n]"
<< "connection: close[\r][\n]"
<< "content-length: 99[\r][\n]"
<< "server: httpd.js[\r][\n]"
<< "date: Wed, 10 Apr 2013 18:43:40 GMT[\r][\n]"
<< "[\r][\n]"
Receiving response: HTTP/1.1 200 OK
<< HTTP/1.1 200 OK
<< content-type: application/json; charset=UTF-8
<< connection: close
<< content-length: 99
<< server: httpd.js
<< date: Wed, 10 Apr 2013 18:43:40 GMT
<< "{"name":"executeScript","sessionId":"bfaec653-501a-401c-9b6a-227341e1fe38","status":0,"value":null}"
Connection 0.0.0.0:59284<->127.0.0.1:7055 shut down
Released connection is not reusable.
Releasing connection [{}->http://127.0.0.1:7055][null]
Connection 0.0.0.0:59284<->127.0.0.1:7055 closed
Notifying no-one, there are no waiting threads
Get connection: {}->http://127.0.0.1:7055, timeout = 120000
[{}->http://127.0.0.1:7055] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [{}->http://127.0.0.1:7055][null]
Available capacity: 2000 out of 2000 [{}->http://127.0.0.1:7055][null]
Creating new connection [{}->http://127.0.0.1:7055]
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> "POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Content-Length: 47[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"
>> POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> Accept: application/json, image/png
>> Content-Type: application/json; charset=utf-8
>> Content-Length: 47
>> Host: 127.0.0.1:7055
>> Connection: Keep-Alive
>> "{"args":[""],"script":"window.scrollBy(0,200)"}"
<< "HTTP/1.1 200 OK[\r][\n]"
<< "content-type: application/json; charset=UTF-8[\r][\n]"
<< "connection: close[\r][\n]"
<< "content-length: 99[\r][\n]"
<< "server: httpd.js[\r][\n]"
<< "date: Wed, 10 Apr 2013 18:43:40 GMT[\r][\n]"
<< "[\r][\n]"
Receiving response: HTTP/1.1 200 OK
<< HTTP/1.1 200 OK
<< content-type: application/json; charset=UTF-8
<< connection: close
<< content-length: 99
<< server: httpd.js
<< date: Wed, 10 Apr 2013 18:43:40 GMT
<< "{"name":"executeScript","sessionId":"bfaec653-501a-401c-9b6a-227341e1fe38","status":0,"value":null}"
Connection 0.0.0.0:59285<->127.0.0.1:7055 shut down
Released connection is not reusable.
Releasing connection [{}->http://127.0.0.1:7055][null]
Connection 0.0.0.0:59285<->127.0.0.1:7055 closed
Notifying no-one, there are no waiting threads
Get connection: {}->http://127.0.0.1:7055, timeout = 120000
[{}->http://127.0.0.1:7055] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [{}->http://127.0.0.1:7055][null]
Available capacity: 2000 out of 2000 [{}->http://127.0.0.1:7055][null]
Creating new connection [{}->http://127.0.0.1:7055]
Connecting to 127.0.0.1:7055
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1
>> "POST /hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/execute HTTP/1.1[\r][\n]"
>> "Accept: application/json, image/png[\r][\n]"
>> "Content-Type: application/json; charset=utf-8[\r][\n]"
>> "Content-Length: 47[\r][\n]"
>> "Host: 127.0.0.1:7055[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"  
获取连接:{}->http://127.0.0.1:7055,超时=120000
[{}->http://127.0.0.1:7055]保持活动状态的总数:0,发布的总数:0,分配的总数:0,共2000个
没有可用连接[{}->http://127.0.0.1:7055][零]
可用容量:2000年中的2000年[{}->http://127.0.0.1:7055][零]
正在创建新连接[{}->http://127.0.0.1:7055]
连接到127.0.0.1:7055
CookieSpec入选:最佳匹配
未在上下文中设置身份验证缓存
目标身份验证状态:未被质询
代理身份验证状态:未被质询
尝试1执行请求
发送请求:POST/hub/session HTTP/1.1
>>“POST/hub/session HTTP/1.1[\r][\n]”
>>接受:application/json,image/png[\r][\n]
>>“内容类型:application/json;charset=utf-8[\r][\n]”
>>“内容长度:105[\r][\n]”
>>“主机:127.0.0.1:7055[\r][\n]”
>>“连接:保持活动状态[\r][\n]”
>>“[\r][\n]”
>>POST/hub/session HTTP/1.1
>>接受:application/json、image/png
>>内容类型:application/json;字符集=utf-8
>>内容长度:105
>>主持人:127.0.0.1:7055
>>连接:保持活力
>>{“desiredCapabilities”:{“平台”:“任何”,“浏览器名”:“firefox”,“版本”:“}”,requiredCapabilities:{}”
“[\r][\n]”
>>GET/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38 HTTP/1.1
>>接受:application/json、image/png
>>内容类型:application/json;字符集=utf-8
>>主持人:127.0.0.1:7055
>>连接:保持活力
“内容长度:74[\r][\n]”
>>“主机:127.0.0.1:7055[\r][\n]”
>>“连接:保持活动状态[\r][\n]”
>>“[\r][\n]”
>>POST/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/url HTTP/1.1
>>接受:application/json、image/png
>>内容类型:application/json;字符集=utf-8
>>内容长度:74
>>主持人:127.0.0.1:7055
>>连接:保持活力
>>{“url”:http://www.jabong.com/men/shoes/men-loafers/?source=home-左导航“}”
“内容长度:47[\r][\n]”
>>“主机:127.0.0.1:7055[\r][\n]”
>>“连接:保持活动状态[\r][\n]”
>>“[\r][\n]”
>>POST/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/执行HTTP/1.1
>>接受:application/json、image/png
>>内容类型:application/json;字符集=utf-8
>>内容长度:47
>>主持人:127.0.0.1:7055
>>连接:保持活力
>>{“args”:[“”],“script”:“window.scrollBy(0250)”}
“内容长度:47[\r][\n]”
>>“主机:127.0.0.1:7055[\r][\n]”
>>“连接:保持活动状态[\r][\n]”
>>“[\r][\n]”
>>POST/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/执行HTTP/1.1
>>接受:application/json、image/png
>>内容类型:application/json;字符集=utf-8
>>内容长度:47
>>主持人:127.0.0.1:7055
>>连接:保持活力
>>{“args”:[“”],“script”:“window.scrollBy(0200)”}
“内容长度:47[\r][\n]”
>>“主机:127.0.0.1:7055[\r][\n]”
>>“连接:保持活动状态[\r][\n]”
>>“[\r][\n]”
>>POST/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/执行HTTP/1.1
>>接受:application/json、image/png
>>内容类型:application/json;字符集=utf-8
>>内容长度:47
>>主持人:127.0.0.1:7055
>>连接:保持活力
>>{“args”:[“”],“script”:“window.scrollBy(0200)”}
“内容长度:47[\r][\n]”
>>“主机:127.0.0.1:7055[\r][\n]”
>>“连接:保持活动状态[\r][\n]”
>>“[\r][\n]”
>>POST/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/执行HTTP/1.1
>>接受:application/json、image/png
>>内容类型:application/json;字符集=utf-8
>>内容长度:47
>>主持人:127.0.0.1:7055
>>连接:保持活力
>>{“args”:[“”],“script”:“window.scrollBy(0200)”}
“内容长度:47[\r][\n]”
>>“主机:127.0.0.1:7055[\r][\n]”
>>“连接:保持活动状态[\r][\n]”
>>“[\r][\n]”
>>POST/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/执行HTTP/1.1
>>接受:application/json、image/png
>>内容类型:application/json;字符集=utf-8
>>内容长度:47
>>主持人:127.0.0.1:7055
>>连接:保持活力
>>{“args”:[“”],“script”:“window.scrollBy(0200)”}
“内容长度:47[\r][\n]”
>>“主机:127.0.0.1:7055[\r][\n]”
>>“连接:保持活动状态[\r][\n]”
>>“[\r][\n]”
>>POST/hub/session/bfaec653-501a-401c-9b6a-227341e1fe38/执行HTTP/1.1
>>接受:application/json、image/png
>>内容类型:application/json;字符集=utf-8
>>内容长度:47
>>主持人:127.0.0.1:7055
>>连接:保持活力
>>{“args”:[“”],“script”:“window.scrollBy(0200)”}
“内容长度:47[\r][\n]”
>>“主机:127.0.0.1:7055[\r][\n]”
>>“连接:保持活动状态[\r][\n]”

您正在将
rootLogger
设置为
DEBUG
,这意味着使用Log4J的所有库的调试语句都将记录它们的调试语句。这可能是用注释替换的代码部分。//下面是一些递归执行的过程。

最好将
rootLogger
配置为log
INFO
或更高版本,并且-如果您确实需要调试级别的日志记录-将记录器配置为