PHP Class Formatter, xpspl

Copyright 2008- Samuli Järvelä Released under GPL License. License: http://www.mollify.org/license.php
Show file Open project: prggmr/xpspl Class Usage Examples

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 property

Output file.
protected resource $_format
return resource