Logging error to stderr and debug, info to stdout with log4j

前端 未结 6 1665
长情又很酷
长情又很酷 2020-12-12 14:14

I want to add logging to an application I am developing, using apache log4j. At this point I want to redirect all log messages for level INFO and lower (TRACE, DEBUG) to std

6条回答
  •  悲&欢浪女
    2020-12-12 14:58

    Per Jon Skeet's previous post at Post

    unfortunately there is no maximum threshold, so wherever you get debug messages, you also get warning messages. That's a bit of a pain, IMO.

提交回复
热议问题