Preferences:Statements
Statements
Options:
- Embed isTraceEnabled() Statement
-
If checked isTraceEnabled() surrounds the trace statement.
The statements themselves are defined in Log4E (Templates) > Is<Level>Enabled Statements and Log4E (Templates) > Is<Position>Enabled Statements
As a result the logger statements are automatically inserted like in that example:
public String myMethod(String arg1) { if (logger.isDebugEnabled()) { logger.debug(...); } //Your code.... }
- Use braces when embedding a is<Level>Enabled() statement
-
When not checked, the generation of braces will be omitted. Example:
if (logger.isDebugEnabled()) logger.debug(...);