public class Level extends java.lang.Object
Updated to WrapLog version 1.1.
|Modifier and Type||Field and Description|
Logging level for messages that usually are of no interest for the user.
Logging level for messages that explain why the desired operation cannot be performed.
Logging level for messages that tell details about normal operations currently going on.
Logging level for message that notify that the things can be processed, but the user might want to take a closer look at the current situation.
|Constructor and Description|
public static final int DEBUG
public static final int ERROR
Note: a simple way for deriving goog error messages is to make them fit the pattern:
cannot do something: actual state must match expectation.Just fill in "do something", "actual state" and "expectation".
In case your code is just reporting a Java
Exception that happens at a lower level on the call stack,
use the pattern:
cannot do something: <In practice, this often results into sucky error messages, but therer is not much you can do about it except making sure that if your own
Exceptionshave a useful
public static final int INFO
public static final int WARN
Note: warnings are a good indicator for bad design. They hint at the
developer being to dumb to resolve a situation and therefor delegating
the responsibility to the user. Preferrably, the code shoud be changed to
INFO, throw an exception or log