Change Log Levels at Runtime
Steps
Raise or lower a logger's level without restarting the server, with the Logging Application of the wiki administration.
- Open the wiki administration and select "Other" in the menu, then "Logging".

- 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.

- Pick a level in the row's list, then select "Set".

- 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.

FAQ
Why can I read the levels but not change them?
The "Actions" column is rendered only for a user who has the programming right. Without it the screen is read only.
Can I change a level from a script?
Yes. The $services.logging script service does the same from Velocity or Groovy: getLevels() returns every registered logger with its level, getLevel() reads one, and setLevel('org.xwiki.store', 'debug') sets one. setLevel needs the programming right too, and without it does nothing at all rather than reporting an error.
Can I set a level for a logger that is not in the list?
No. The list holds the loggers XWiki has registered, and a name outside it is refused with "Failed to set log level". Declare it in the Logback configuration file instead.
How do I undo a change?
Select "default" in the row's list. That unsets the level, which returns the logger to inheriting from its parent rather than to the value in the Logback configuration file. Restart the servlet container to get the configured value back.