PHP Class Resque\Logger

Author: Michael Haynes ([email protected])
Mostra file Open project: mjphaynes/php-resque

Protected Properties

Property Type Description
$instance The monolog instance
$logTypes List of valid log levels

Public Methods

Method Description
__construct ( array $handlers ) Create a Monolog\Logger instance and attach a handler
getInstance ( ) : Logger Return a Monolog Logger instance
log ( string $message, integer $context = null, integer $logType = null ) Send log message to output interface

Method Details

__construct() public method

Create a Monolog\Logger instance and attach a handler
See also: https://github.com/Seldaek/monolog#handlers Monolog handlers documentation
public __construct ( array $handlers )
$handlers array Array of Monolog handlers

getInstance() public method

Return a Monolog Logger instance
public getInstance ( ) : Logger
return Monolog\Logger instance, ready to use

log() public method

Send log message to output interface
public log ( string $message, integer $context = null, integer $logType = null )
$message string Message to output
$context integer Some context around the log
$logType integer The log type

Property Details

$instance protected_oe property

The monolog instance
protected $instance

$logTypes protected_oe property

List of valid log levels
protected $logTypes