PHP Класс Longman\TelegramBot\TelegramLog

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$debug_log_path string Path for debug log
$debug_log_temp_stream_handle null Temporary stream handle for debug log
$error_log_path string Path for error log
$monolog Monolog\Logger Monolog instance
$monolog_update Monolog\Logger Monolog instance for update
$update_log_path string Path for update log

Открытые методы

Метод Описание
debug ( string $text ) Report debug log
endDebugLogTempStream ( string $message = '%s' ) Write the temporary debug stream to log and close the stream handle
error ( string $text ) Report error log
getDebugLogTempStream ( ) : mixed Get the stream handle of the temporary debug output
initDebugLog ( string $path ) : Logger Initialize debug log
initErrorLog ( string $path ) : Logger Initialize error log
initUpdateLog ( string $path ) : Logger Initialize update log
initialize ( Logger $external_monolog = null ) : Logger Initialize
isDebugLogActive ( ) : boolean Is debug log active
isErrorLogActive ( ) : boolean Is error log active
isUpdateLogActive ( ) : boolean Is update log active
update ( string $text ) Report update log

Описание методов

debug() публичный статический Метод

Report debug log
public static debug ( string $text )
$text string

endDebugLogTempStream() публичный статический Метод

Write the temporary debug stream to log and close the stream handle
public static endDebugLogTempStream ( string $message = '%s' )
$message string Message (with placeholder) to write to the debug log

error() публичный статический Метод

Report error log
public static error ( string $text )
$text string

getDebugLogTempStream() публичный статический Метод

Get the stream handle of the temporary debug output
public static getDebugLogTempStream ( ) : mixed
Результат mixed The stream if debug is active, else false

initDebugLog() публичный статический Метод

Initialize debug log
public static initDebugLog ( string $path ) : Logger
$path string
Результат Monolog\Logger

initErrorLog() публичный статический Метод

Initialize error log
public static initErrorLog ( string $path ) : Logger
$path string
Результат Monolog\Logger

initUpdateLog() публичный статический Метод

Initilize monolog instance. Singleton Is possbile provide an external monolog instance
public static initUpdateLog ( string $path ) : Logger
$path string
Результат Monolog\Logger

initialize() публичный статический Метод

Initilize monolog instance. Singleton Is possbile provide an external monolog instance
public static initialize ( Logger $external_monolog = null ) : Logger
$external_monolog Monolog\Logger
Результат Monolog\Logger

isDebugLogActive() публичный статический Метод

Is debug log active
public static isDebugLogActive ( ) : boolean
Результат boolean

isErrorLogActive() публичный статический Метод

Is error log active
public static isErrorLogActive ( ) : boolean
Результат boolean

isUpdateLogActive() публичный статический Метод

Is update log active
public static isUpdateLogActive ( ) : boolean
Результат boolean

update() публичный статический Метод

Report update log
public static update ( string $text )
$text string

Описание свойств

$debug_log_path защищенное статическое свойство

Path for debug log
protected static string $debug_log_path
Результат string

$debug_log_temp_stream_handle защищенное статическое свойство

Temporary stream handle for debug log
protected static null $debug_log_temp_stream_handle
Результат null

$error_log_path защищенное статическое свойство

Path for error log
protected static string $error_log_path
Результат string

$monolog защищенное статическое свойство

Monolog instance
protected static Logger,Monolog $monolog
Результат Monolog\Logger

$monolog_update защищенное статическое свойство

Monolog instance for update
protected static Logger,Monolog $monolog_update
Результат Monolog\Logger

$update_log_path защищенное статическое свойство

Path for update log
protected static string $update_log_path
Результат string