|
Page Edited :
FELIX :
4.3. Logging system
4.3. Logging system has been edited by Guillaume Nodet (May 11, 2009). Content:4.3. Logging systemKaraf provides a powerful logging system based on OPS4j Pax Logging In addition to being a standard OSGi Log service, it supports the following APIs:
Karaf also comes with a set of console commands that can be used to display, view and change the log levels. ConfigurationThe configuration of the logging system uses a standard Log4j configuration file [karaf]/etc/org.ops4j.pax.logging.cfg You can edit this file at runtime and any change will be reloaded and be effective immediately.
For example, if you want to debug something, you might want to run the following commands: > log/set DEBUG
... do something ...
> ld
Note that the log levels set using the log set commands are not persistent and will be lost upon restart. |
Unsubscribe or edit your notifications preferences
