我使用natty日期/时间解析器来解析任意格式的日期/时间字符串。它产生了太多的日志:
016-08-24 18:22:22,821 INFO [com.joestelmach.natty.Parser] (pool-4-thread-1)AST:(DATE_TIME_ALTERNATIVE(DATE_TIME (EXPLICIT_DATE(MONTH_OF_YEAR 8)(DAY_OF_MONTH 24)(DAY_OF_WEEK 4)) (EXPLICIT_TIME(HOURS_OF_DAY 18)(MINUTES_OF_HOUR 20) (SECONDS_OF_MINUTE 14)America / New_York)))2016-08-24 18:22:22,821 INFO [com.joestelmach.natty.Parser](pool-4-thread-1)STREAM: WEDNESDAY WHITE_SPACE 8月WHITE_SPACE INT_24 WHITE_SPACE INT_18 COLON INT_36 COLON INT_24 WHITE_SPACE EST WHITE_SPACE INT_20 INT_16 2016-08-24 18:22:22,821 INFO [com.joestelmach.natty.Parser] (pool-4-thread-1)GROUP:WEDNESDAY WHITE_SPACE 8月WHITE_SPACE INT_24 WHITE_SPACE INT_18 COLON INT_36 COLON INT_24 WHITE_SPACE EST WHITE_SPACE INT_20 INT_16 2016-08-24 18:22:22,821 INFO [com.joestelmach.natty.Parser](pool-4-thread-1)PARSE:WEDNESDAY WHITE_SPACE 8月WHITE_SPACE INT_24 WHITE_SPACE INT_18 COLON INT_36 COLON INT_24 WHITE_SPACE EST WHITE_SPACE INT_20 INT_16 2016-08-24 18:22:22,821 INFO [com.joestelmach.natty.Parser](pool-4-thread-1) AST:(DATE_TIME_ALTERNATIVE(DATE_TIME(EXPLICIT_DATE(MONTH_OF_YEAR) 8)(DAY_OF_MONTH 24)(DAY_OF_WEEK 4))(EXPLICIT_TIME(HOURS_OF_DAY 18) (MINUTES_OF_HOUR 36)(SECONDS_OF_MINUTE 24)America / New_York)))
所以我尝试使用
停止它log4j.logger.com.joestelmach = ERROR
log4j.properties和log4j.xml中的。
这两项都没有帮助解决问题。
我该如何解决这个问题?
由于