CMS 2.0 - Theme engine, logging, admin improvements
Major changes: - New ThemeManager with Twig templating and SCSS compilation - Dynamic themes system (themes/default, themes/demo) - LogManager with SQLite storage and syslog forwarding - RequestLogger with static helper methods - Admin UI overhaul (Bootstrap 5, dark mode) - Admin config page with logging and theme settings - Admin logs page with filters and search - Removed legacy Mustache templates - Removed test plugin and theme - Composer dependencies: Twig, scssphp, CommonMark, MaxMind GeoIP
This commit is contained in:
@@ -98,6 +98,14 @@ class Logger {
|
||||
|
||||
// Write to file with error suppression (graceful degradation)
|
||||
@file_put_contents(self::$logFile, $line, FILE_APPEND | LOCK_EX);
|
||||
|
||||
// Route through the dynamic log manager (errors/system events)
|
||||
if (class_exists('LogManager')) {
|
||||
$event = ($level === self::ERROR || $level === self::WARNING)
|
||||
? LogManager::EVENT_ERRORS
|
||||
: LogManager::EVENT_SYSTEM;
|
||||
LogManager::log($event, strtolower($level), $message, $context);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user