Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
When adding logs for debugging, rather than using info
or warn
, use the debug
or trace
verbosity level and set the log level in Karaf to inspect the debug messages.
When logging parameterized messages, use {} substituttion, not string concatenation. That is, do NOT do this:
Code Block | ||
---|---|---|
| ||
log.debug("Error detected at line " + lineNo + ", position " + pos); |
Instead, do this:
Code Block |
---|
log.debug("Error detected at line {}, position {}", lineNo, pos); |
Usage of Guava (More of a tools section topic)
...