PHP Class Thruway\Logging\Logger

显示文件 Open project: voryx/thruway Class Usage Examples

Public Methods

Method Description
alert ( null $object = null, $message, array $context = [] ) : null
critical ( null $object = null, $message, array $context = [] ) : null
debug ( null $object = null, $message, array $context = [] ) : null
emergency ( null $object = null, $message, array $context = [] ) : null
error ( null $object = null, $message, array $context = [] ) : null
getDebug ( )
info ( null $object = null, $message, array $context = [] ) : null
log ( null $object = null, $level, $message, array $context = [] ) : null
notice ( null $object = null, $message, array $context = [] ) : null
set ( Psr\Log\LoggerInterface $logger )
setDebug ( $debug = false )
warning ( $object = null, $message, array $context = [] ) : null

Protected Methods

Method Description
__construct ( ) Protected constructor to prevent creating a new instance of the *Singleton* via the new operator from outside of this class.

Private Methods

Method Description
__clone ( ) : void Private clone method to prevent cloning of the instance of the *Singleton* instance.
__wakeup ( ) : void Private unserialize method to prevent unserializing of the *Singleton* instance.

Method Details

__construct() protected method

Protected constructor to prevent creating a new instance of the *Singleton* via the new operator from outside of this class.
protected __construct ( )

alert() public static method

public static alert ( null $object = null, $message, array $context = [] ) : null
$object null
$message
$context array
return null

critical() public static method

public static critical ( null $object = null, $message, array $context = [] ) : null
$object null
$message
$context array
return null

debug() public static method

public static debug ( null $object = null, $message, array $context = [] ) : null
$object null
$message
$context array
return null

emergency() public static method

public static emergency ( null $object = null, $message, array $context = [] ) : null
$object null
$message
$context array
return null

error() public static method

public static error ( null $object = null, $message, array $context = [] ) : null
$object null
$message
$context array
return null

getDebug() public static method

public static getDebug ( )

info() public static method

public static info ( null $object = null, $message, array $context = [] ) : null
$object null
$message
$context array
return null

log() public static method

public static log ( null $object = null, $level, $message, array $context = [] ) : null
$object null
$level
$message
$context array
return null

notice() public static method

public static notice ( null $object = null, $message, array $context = [] ) : null
$object null
$message
$context array
return null

set() public static method

public static set ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface

setDebug() public static method

public static setDebug ( $debug = false )

warning() public static method

public static warning ( $object = null, $message, array $context = [] ) : null
$message
$context array
return null