PHP 클래스 Longman\TelegramBot\TelegramLog

파일 보기 프로젝트 열기: akalongman/php-telegram-bot 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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