PHP Class dropr, dropr

- constants - logging - autoloading
Author: Soenke Ruempler ([email protected])
ファイルを表示 Open project: s0enke/dropr Class Usage Examples

Public Methods

Method Description
autoload ( $className )
getLogger ( ) : dropr_Log Get the Logger instance
log ( string $message, integer $level = LOG_INFO ) logging for the dropr services. can be - syslog for daemons - error_log for http processes
setClassRoot ( $classRoot )
setLogLevel ( unknown_type $logLevel ) set the log level
setLogger ( dropr_Log $logger ) set the logger

Method Details

autoload() public static method

public static autoload ( $className )

getLogger() public static method

Get the Logger instance
public static getLogger ( ) : dropr_Log
return dropr_Log

log() public static method

currently only syslog is implemented
public static log ( string $message, integer $level = LOG_INFO )
$message string
$level integer

setClassRoot() public static method

public static setClassRoot ( $classRoot )

setLogLevel() public static method

set the log level
public static setLogLevel ( unknown_type $logLevel )
$logLevel unknown_type

setLogger() public static method

set the logger
public static setLogger ( dropr_Log $logger )
$logger dropr_Log