Wiki source code of Change Log Levels at Runtime
Last modified by Eleni Cojocariu on 2026/11/24 18:38
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | Raise or lower a logger's level without restarting the server, with the [[Logging Application>>doc:extensions:Extension.Logging Application]] of the wiki administration. | ||
| 2 | |||
| 3 | 1. Open the wiki administration and select "Other" in the menu, then "Logging".((( | ||
| 4 | {{image reference="administration-logging-section.png" size="extra" alt="The Logging entry of the wiki administration menu, with the list of loggers beside it"/}} | ||
| 5 | ))) | ||
| 6 | 1. Filter the "Logger" column to the package or class you are investigating. The table lists every logger XWiki has registered so far, under its full name. A row whose "Level" is empty takes its level from the logger above it in the name, or from the Logback configuration when there is none.((( | ||
| 7 | {{image reference="logging-filter-logger.png" size="large" alt="The Logger column filtered to org.xwiki.store, showing the matching loggers"/}} | ||
| 8 | ))) | ||
| 9 | 1. Pick a level in the row's list, then select "Set".((( | ||
| 10 | {{image reference="logging-set-level.png" size="large" alt="The level list of a logger row, expanded on DEBUG"/}} | ||
| 11 | ))) | ||
| 12 | 1. The confirmation names the logger and its new level, and the "Level" column shows it. XWiki starts writing at that level immediately, and keeps doing so until the servlet container is restarted. To keep the change, set it in the Logback configuration file as well, as described in [[Configure Log Levels>>doc:documentation.xs.admin.logging.configure-levels.WebHome]].((( | ||
| 13 | {{image reference="logging-level-confirmation.png" size="large" alt="The confirmation message and the Logger row now showing the DEBUG level"/}} | ||
| 14 | ))) |