====== logger ====== **Каноническая страница:** [[https://humanemulator.net/objects/SYSTEM/logger.php|https://humanemulator.net/objects/SYSTEM/logger.php]] [[objects:start|← Objects]] ---- Добавлено в августе 2026. SYSTEM / logger Логирование скриптов (SYSTEM::$logger) Запись логов Хранение в SQLite Экспорт Запись логов init – The default date and time format for logs unless a different format is specified during initialization */ log – Log message trace – Log the Trace message debug – Log the Debug message info – Log the Information message warn – Log the Warning message error – Log the Error message critical – Log the Critical message setFormatTagsForHtmlFormat – Set format tag HTML formatted text transliterateText – Transliterates cyrillic a string into Latin symbols ('Привет' => 'Privet') Хранение в SQLite addLogToSQLite – if (!LogLevel::tryFrom($logLevelCode)) getLogByIdFromSQLite – Get log entry by ID getLogsByLevelFromSQLite – Get log entries by level with period and pagination getLogsByLevelsFromSQLite – Get log entries by multiple levels with period and pagination getLogsByMessageFromSQLite – Get log entries by message text, level and period with pagination getLogsByCallerFromSQLite – Get log entries by caller with pagination getLogsByPeriodFromSQLite – Get all log entries by period with pagination getLogCountByLevelFromSQLite – Get count of log entries by level and period getTotalLogCountFromSQLite – Get total count of log entries deleteLogsByPeriodFromSQLite – Delete log entries by period (one or several days) Экспорт exportAllLogsFromDbSQLiteToCsv – Export all log entries from SQLite database to CSV file exportLogsByPeriodFromSQLiteToTextFile – Export log entries for period from SQLite database to text or HTML file