Axiom (v1.2.0)

A lightweight PHP framework
axTextLogger Class Reference

Text Logger Class. More...

+ Inheritance diagram for axTextLogger:

Public Member Functions

 __construct ($filename, $mask=false, $format=false, $open_mode= 'a')
 Constructor.
 writeMessage ($msg, $severity)

Data Fields

 $format

Protected Attributes

 $_file
 File handle.

Detailed Description

Text Logger Class.

Author:
Delespierre
License:
http://www.gnu.org/licenses/lgpl.html Lesser General Public Licence version 3

Definition at line 16 of file axTextLogger.class.php.


Constructor & Destructor Documentation

axTextLogger::__construct ( filename,
mask = false,
format = false,
open_mode = 'a' 
)

Constructor.

If $format parameter is not specified, the default format will be used (which is "[%s] %s: %s\n"). If $open_mode parameter is not specified, the 'a' (Write + Append) open mode will be used

Parameters:
string$filename
interger$mask[optional] [default false] If false, will handle all priorities
string$format[optional] [default false] If false, will use "[%s] %s: %s\n" as format
char$open_mode[optional] [default 'a']

Definition at line 53 of file axTextLogger.class.php.


Member Function Documentation

axTextLogger::writeMessage ( msg,
severity 
)

Write the message .

Parameters:
string$msgThe message to write
string$severity(one of 'Error','Notice','Warning', or 'Debug')
Returns:
axLogger

Reimplemented from axLogger.

Definition at line 67 of file axTextLogger.class.php.


Field Documentation

SplFileObject axTextLogger::$_file [protected]

File handle.

Definition at line 22 of file axTextLogger.class.php.

axTextLogger::$format

Definition at line 40 of file axTextLogger.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables