User Tools

Site Tools


Sidebar

en:objects:system:logger:write:init

init

Каноническая страница: https://humanemulator.net/objects/SYSTEM/logger/write/init.php

← Objects


Справка Human Emulator logger: init

logger“; ?>

init

init($minLogLevelCode=LogLevel::DEBUG,$phpUseTroughShell=true,$writeLogToLogPanel=true,$logFilePath=”“,$logSQLiteDbFilePath=”“,$dateTimeFormat=self::DateTimeFormatDefault,$localizationCode=“en”,$isNeedTextTransliteration=false,$useXheApiToAction=true); - The default date and time format for logs unless a different format is specified during initialization */

const DateTimeFormatDefault = “d-m-Y H:i:s”; #region Private members / / private int $minLogLevelCode = LogLevel::DEBUG; / True - running not from a third-party IDE, otherwise from a third-party IDE / private bool $phpUseTroughShell = true; / / private bool $writeLogToLogPanel = true; / / private string $logFilePath = ''; / / private string $logSQLiteDbFilePath; / / private string $dateTimeFormat = self::DateTimeFormatDefault; / / private string $localizationCode = “en”; / @var bool Is need make text transliteration? */ private bool $isNeedTextTransliteration = false; / @var bool Use XHE API to execute actions? */ private bool $useXheApiToAction = true; / / private array $logLevelNameLocDictionaryRu = array( 'TRACE' ⇒ 'СЛЕД', 'DEBUG' ⇒ 'ОТЛАДКА', 'INFO' ⇒ 'ИНФО', 'WARNING' ⇒ 'ПРЕДУПРЕЖДЕНИЕ', 'ERROR' ⇒ 'ОШИБКА', 'CRITICAL' ⇒ 'КРИТИЧЕСКАЯ ОШИБКА' ); / / private array $logLevelNameLocDictionaryTr = array( 'TRACE' ⇒ '?ZLEME', 'DEBUG' ⇒ 'HATA AYIKLAMA', 'INFO' ⇒ 'B?LG?', 'WARNING' ⇒ 'UYARI', 'ERROR' ⇒ 'HATA', 'CRITICAL' ⇒ 'KR?T?K' ); #endregion / Init

* $minLogLevelCode – Minimum Logging Level [0..5]

* $phpUseTroughShell – Running the script not from a third-party IDE?

* $writeLogToLogPanel – Log in “Log panel” UI? Yes/No

* $logFilePath – Путь к файлу логов. Логировать в файл, если указан путь к файлу

* $logSQLiteDbFilePath – Log to a local SQLite DB file if a file path is specified

* $dateTimeFormat – DateTime format for log text

* $localizationCode – Localization code by ISO 639-1

* $isNeedTextTransliteration – Made text transliteration?

* $useXheApiToAction – Use XHE API to execute actions?

После выполнения функции возвращаемое значение будет равно одному из двух :

* результат – void

en/objects/system/logger/write/init.txt · Last modified: 2026/08/05 22:51 (external edit)