PHP Class phprs\util\Logger

Author: caoym
Datei anzeigen Open project: caoym/phprs-restful Class Usage Examples

Public Properties

Property Type Description
$flags
$to_echo echo输出
$to_php_log callable trigger_error 输出
$to_void 忽略输出
$writer callable 输出到哪, 默认为Logger::$to_php_log

Public Methods

Method Description
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

Method Details

debug() public static method

debug log
public static debug ( string $msg ) : void
$msg string
return void

error() public static method

error log
public static error ( string $msg ) : void
$msg string
return void

info() public static method

info log
public static info ( string $msg ) : void
$msg string
return void

init() public static method

init
public static init ( ) : void
return void

warning() public static method

warning log
public static warning ( string $msg ) : void
$msg string
return void

Property Details

$flags static_oe public_oe property

static public $flags

$to_echo static_oe public_oe property

echo输出
static public $to_echo

$to_php_log static_oe public_oe property

trigger_error 输出
static public callable $to_php_log
return callable

$to_void static_oe public_oe property

忽略输出
static public $to_void

$writer static_oe public_oe property

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