PHP Class Logger\Formatter

Formats a log message. The formatter allows for the following parameters. %date - Date of the log %message - Log message %code - Error Code Level %str_code - String representation of the error code
Mostra file Open project: prggmr/xpspl

Protected Properties

Property Type Description
$_format resource Output file.

Public Methods

Method Description
__construct ( object $format ) : void Create a formatter.
format ( integer $code, string $message ) : void Handles a message.

Method Details

__construct() public method

Create a formatter.
public __construct ( object $format ) : void
$format object String format to log a message
return void

format() public method

Handles a message.
public format ( integer $code, string $message ) : void
$code integer Log level code.
$message string Message to handle.
return void

Property Details

$_format protected_oe property

Output file.
protected resource $_format
return resource