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
Afficher le fichier Open project: prggmr/xpspl

Protected Properties

Свойство Type Description
$_format resource Output file.

Méthodes publiques

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

Method Details

__construct() public méthode

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

format() public méthode

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

Property Details

$_format protected_oe property

Output file.
protected resource $_format
Résultat resource