Geomajas Community Documentation
When inserting debug statements, parameterized messages should
be used to prevent the need/usefulness of
isDebugEnabled()
.
private final Logger log = LoggerFactory.getLogger( ContainingClassName.class );
log level | default on | use |
---|---|---|
ERROR | yes | major problems, should always be visible in logs and are likely to require action from a person (to fix the condition or assure it does not happen again). Indicates that something is seriously wrong. |
WARN | yes | warning about potential problems. Should always be visible in logs and a person will probably need to assess whether this is harmless or should be treated as an error. |
INFO | yes | important information. You can assume this level is on in production, so it should be carefully considered whether this level is appropriate. In general only used to indicate service status (started, stopped). |
DEBUG | no | logging information which is detailed enough to know what is happening in the system, without flooding the logs. |
TRACE | no | very detailed logging, probably only making sense to the developer of the code. |
Table 1.1. logging levels