Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

The configuration of the logging system uses a standard Log4j configuration file at the following location:

Code Block
[SMX4KNL:kernelkaraf]/etc/org.ops4j.pax.logging.cfg

...

The log subshell comes with 3 commands:

  • ld or log/:display: display the last log entries
  • lde or log/:display-exception: display the last exception from the log
  • log/:get: show the log levels
  • log/:set: set the log levels

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

Code Block
> log/:set DEBUG
... do something ...
> ldlog: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.
4.3. Logging system #top

Wiki Markup
{scrollbar}