PHP 클래스 phprs\util\Logger

저자: caoym
파일 보기 프로젝트 열기: caoym/phprs-restful 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$flags
$to_echo echo输出
$to_php_log callable trigger_error 输出
$to_void 忽略输出
$writer callable 输出到哪, 默认为Logger::$to_php_log

공개 메소드들

메소드 설명
debug ( string $msg ) : void debug log
error ( string $msg ) : void error log
info ( string $msg ) : void info log
init ( ) : void init
warning ( string $msg ) : void warning log

메소드 상세

debug() 공개 정적인 메소드

debug log
public static debug ( string $msg ) : void
$msg string
리턴 void

error() 공개 정적인 메소드

error log
public static error ( string $msg ) : void
$msg string
리턴 void

info() 공개 정적인 메소드

info log
public static info ( string $msg ) : void
$msg string
리턴 void

init() 공개 정적인 메소드

init
public static init ( ) : void
리턴 void

warning() 공개 정적인 메소드

warning log
public static warning ( string $msg ) : void
$msg string
리턴 void

프로퍼티 상세

$flags 정적으로 공개적으로 프로퍼티

static public $flags

$to_echo 정적으로 공개적으로 프로퍼티

echo输出
static public $to_echo

$to_php_log 정적으로 공개적으로 프로퍼티

trigger_error 输出
static public callable $to_php_log
리턴 callable

$to_void 정적으로 공개적으로 프로퍼티

忽略输出
static public $to_void

$writer 정적으로 공개적으로 프로퍼티

输出到哪, 默认为Logger::$to_php_log
static public callable $writer
리턴 callable