View Issue Details

IDProjectCategoryView StatusLast Update
0005731Composrerrorlogpublic2024-04-24 22:22
ReporterPatrick SchmalstigAssigned ToPatrick Schmalstig 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0005731: Optimise error log syntax and UI
DescriptionOptimise what we put in the error log file (where possible) with the following new syntax:

[timestamp] Component: CRITICAL|ERROR|WARNING|INFO|DEBUG error message

The admin UI should parse the log accordingly, adding a new column for "level". Also, colourize each row according to its level:

Critical (usually causes a critical error bailing out) - BW/WB reversal according to theme
Error (usually causes a fatal_exit) - Red
Warning (usually causes a warn_exit or a warned attach_message) - Yellow
Info (all other non-debugging logs) - Seed
Debug - Green

Where a level wasn't provided in the log, default to WARNING.
Notice should be logged / treated as INFO.

Fix error_log and cms_error_log accordingly.

Perhaps add a filter box to be able to filter by log level or component, and sorting by date or log level (level column should use language strings to stick a number out in front for proper level sorting, e.g. "0 - Critical")
TagsRoadmap: v11
Time estimation (hours)
Sponsorship open

Activities

Patrick Schmalstig

2024-04-24 18:55

administrator   ~0008680

Also we need to optimize the UI so that it refuses to display the error log (or any log file) if the file is, say, more than 2 MB in size, to prevent PHP out of memory issues.

Issue History

Date Modified Username Field Change
2024-04-24 18:52 Patrick Schmalstig New Issue
2024-04-24 18:52 Patrick Schmalstig Status non-assigned => assigned
2024-04-24 18:52 Patrick Schmalstig Assigned To => Patrick Schmalstig
2024-04-24 18:53 Patrick Schmalstig Tag Attached: Roadmap: v11
2024-04-24 18:55 Patrick Schmalstig Note Added: 0008680
2024-04-24 18:59 Patrick Schmalstig Description Updated View Revisions
2024-04-24 22:22 Patrick Schmalstig Status assigned => resolved
2024-04-24 22:22 Patrick Schmalstig Resolution open => fixed