java - How to know in log4j , that ERROR level is triggered? -
how know in log4j , error level triggered. in code have written if exception occurs i.e if error level triggered show log file path in console , wont show message other levels.
in log4j can configure different levels in log4j.properties or xml file ever choose use. there predefined pattern error levels , runs lower upper. lowest id debug in sequence.
1.debug 2. warn 3. error etc
so if want error messages configure error level error. wot debug , warn
if configure debug everything
ex.
<logger name="org.springframework..."> <level value="error" /> </logger>
Comments
Post a Comment