...
5.1. Troubleshooting, Debugging and Profiling
Troubleshooting
Logging
Logging is easy to control through the console, with commands grouped under log. To learn about the available logging commands type:
Code Block |
---|
karaf@root:/> help log
Available commands:
display Display log entries.
display-exception Display the last exception from the log.
get Show log level.
set Set log level.
d Link to: log/display
de Link to: log/display-exception
|
Typical usage is:
- Use
log/set
to dynamically change the global log level - Execute the problematic operation
- Use
log/d
(shortcutld
}) orlog/de
to display the log
Worst Case Scenario
If you end up with a Karaf in a really bad state (i.e. you can not boot it anymore) or you just want to revert to a clean state quickly, you can safely remove the data
directory just in the installation directory. This folder contains transient data and will be recreated if you remove it and relaunch Karaf.
You may also want to remove the files in the deploy
folder to avoid them being automatically installed when Karaf is started the first time.
...