Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j - level restriction from upside

 
chono ken
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

how can I restrict debug level from "upside".

I want log into the first log file just levels INFO and down (<=INFO)
and into another log file just levels ERROR and up (ERROR<=)

I can restrict from downside, but I don't know how from upside?

I use log4j.properties file listed below.


I get two *.log files:
In the "errout.log" file I get errors and fatals - that's OK.
But in the "stdout.log" file I get debug, info, warn - that's OK - BUT ERRORS, FATALS too - I don't it want.

Please, help.

Thanks.
 
chono ken
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please, any idea?
...Or this is so stupid question?
Thank You.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a search of this forum, the question has been answered several times before...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic