Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagejava
  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)

...