Skip to content

[FEATURE] Init/ErrorHandling: Unify handling of logging errors to log files#11658

Open
mjansenDatabay wants to merge 12 commits into
ILIAS-eLearning:trunkfrom
mjansenDatabay:improvement/init/unified-error-log-file-handlers
Open

[FEATURE] Init/ErrorHandling: Unify handling of logging errors to log files#11658
mjansenDatabay wants to merge 12 commits into
ILIAS-eLearning:trunkfrom
mjansenDatabay:improvement/init/unified-error-log-file-handlers

Conversation

@mjansenDatabay

Copy link
Copy Markdown
Contributor

Until now, only the production default error handler wrote uncaught exceptions to ILIAS’ dedicated error log folder. SOAP and other Whoops handlers did not — and the log file logic lived inside defaultHandler() together with building the user message.

This change pulls log file reporting out of the response handler and runs it as its own step in the Whoops chain. Every handled exception can be written (with this PR, this is only added to the SOAP handler) to the configured log folder, and the identifier shown to the user is the same one used for the log file name.

In a Nutshell:

  • Moved Whoops handlers to components/ILIAS/Init/src.
  • Unified Error Log Files: Moved logging to dedicated log files to a dedicated Whoops handler
    • Handler Chain: RecordErrorIncidentHandler (logging to a dedicated log file) → Logging (to ILIAS log file, if defined by Runtime) → DelegatingHandler (context-specific response)
  • SOAP Faults: Incident codes are now appended to the fault string

These changes don't use the new integration mechanisms, yet. They just address a ROADMAP topic. Nevertheless, I guess migrating the integration could be easier in future due to the new clean classes.

@mjansenDatabay mjansenDatabay added improvement php Pull requests that update Php code labels Jun 9, 2026
@mjansenDatabay mjansenDatabay changed the title [FEATURE] Init/ErrorHandling: Unified handling of logging errors to log files [FEATURE] Init/ErrorHandling: Unify handling of logging errors to log files Jun 9, 2026
@mjansenDatabay mjansenDatabay self-assigned this Jun 9, 2026
@mjansenDatabay mjansenDatabay requested review from chfsx and thibsy June 9, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant