Skip to content

Streamline Logging in a bunch of components - #11859

Open
schmitz-ilias wants to merge 4 commits into
ILIAS-eLearning:trunkfrom
leifos-gmbh:12_logging_cleanup
Open

Streamline Logging in a bunch of components#11859
schmitz-ilias wants to merge 4 commits into
ILIAS-eLearning:trunkfrom
leifos-gmbh:12_logging_cleanup

Conversation

@schmitz-ilias

@schmitz-ilias schmitz-ilias commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The Logging component was recently refactored and cleaned up as described in Streamline Logging. This PR contains the changes required to properly conclude the implementation of that feature:

  • The docs related to installation and configuration of ILIAS are updated to include the new default_level field in the ilias.ini.php. Also for the master.ini.php. (ping @thibsy, @chfsx, @acgruber)
  • All components and plugins now automatically get a configurable log level, so the logging tag is removed from all service.xmls and module.xmls.
  • The long deprecated ilLogger::write and ilLogger::writeLanguageLog have been removed, and its usages replaced (mostly with ilLogger::info). This makes the public interface of the now deprecated ilLogger match the new LoggerInterface.
  • (Almost) all usages of the root logger have been replaced with the logger of the appropriate component. The exception is the logger exposed through an ancient global ilLog \ log. This is still used by a handful of components, most crucially Init\ErrorHandling, but tracking down all usages exactly is tricky. That logger identifies itself now as legacy_root in the log, and only uses the default log level.

Especially the last two sets of changes should be understood as transitional. In the long run, only the new LoggerInterface should be used, but the new infrastructure will only be directly available to other components when the Component revision is a bit further along (see #11430). Until then, this is a step in the right direction, and will ease the transition later on.

@schmitz-ilias schmitz-ilias self-assigned this Aug 5, 2026
@schmitz-ilias schmitz-ilias added jour fixe improvement php Pull requests that update Php code labels Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement jour fixe php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant