Versions Compared

Key

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

...

Logging is easy to control through the console, with commands grouped under log shell. To learn about the available logging commands type:

Code Block
karaf@root:/> help log    
Available commands:
  displaykaraf@root> log<tab>

log:display              Display log entries.
  :display-exception  Display the last exception from the log.
  get                Show log level.
  set:get                     Set log level.
  d                  Link to: log/display
  de                 Link to: log/display-exception:set
karaf@root>

Typical usage is:

  1. Use log/:set to dynamically change the global log level
  2. Execute the problematic operation
  3. Use log/d (shortcut ld}) or log/de :display (or log:display-exception to display the log

Worst Case Scenario

...