我正在使用Play 2.4和Activator 1.3.7,我注意到System.out.println
并不总是打印到浏览器中的控制台.这是非常罕见的,但我今天抓住了它.这是打印语句的顺序:
System.out.println("width : " + mobileCrawl.getWidth()); System.out.println("window width : " + mobileCrawl.getWindowWidth()); System.out.println("scroll width : " + mobileCrawl.getScrollWidth()); System.out.println("seed : " + mobileCrawl.getSeed()); System.out.println("resolved seed : " + mobileCrawl.getResolvedSeed()); System.out.println("crawl date : " + mobileCrawl.getCrawlDate()); System.out.println("400 : " + mobileCrawl.isDetected400()); System.out.println("401 : " + mobileCrawl.isDetected401()); System.out.println("402 : " + mobileCrawl.isDetected402()); System.out.println("403 : " + mobileCrawl.isDetected403()); System.out.println("404 : " + mobileCrawl.isDetected404()); System.out.println("500 : " + mobileCrawl.isDetected500()); System.out.println("501 : " + mobileCrawl.isDetected501()); System.out.println("502 : " + mobileCrawl.isDetected502()); System.out.println("503 : " + mobileCrawl.isDetected503());
这是打印的订单(URL已更改):
width : 980 window width : 980 scroll width : 980 seed : http://google.com/ resolved seed : https://www.google.com/ 400 : false 401 : false 402 : false crawl date : Fri Dec 18 11:18:09 MST 2015 403 : false 500 : false 404 : true 501 : false 502 : false 503 : false
日期打印后应该有三行.这些是来自同一个线程的所有打印语句,它们都来自System.out
,而不是任何来自System.err
,所以不应该有任何交错.
这些打印怎么打乱了?我想System.out
保证订单.