Skip to main content

Console Log Commands

The log scope comes with several commands -- see Log Scope for a full list.

For example, if you want to debug something, you might want to run the following commands:

>log:set DEBUG
... do something ...
>log:display

Note that the log levels set using the log:set commands are not persistent and will be lost upon restart. To configure those in a persistent way, you should edit the configuration file mentioned above using the config commands or directly using a text editor of your choice. The log commands have a separate configuration file: <RuntimeContainerPath>/etc/org.apache.karaf.log.cfg.

For more information about the logging system, see the site http://karaf.apache.org/manual/latest/#_log.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!