phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Class: PoALog

Source Location: /PoALog.php

Class Overview


A simple class to write log messages to a file.


Methods



Class Details

[line 30]
A simple class to write log messages to a file.



[ Top ]


Class Methods


constructor __construct [line 39]

PoALog __construct( level $level, file $file)

Build a new logger.



Tags:

access:  public


Parameters:

level   $level   The level of this log.
file   $file   The file where to write messages.

[ Top ]

method getLogLevel [line 72]

integer getLogLevel( )

Get the current log level.



Tags:

return:  The constant describing the current log level.
access:  public


[ Top ]

method write [line 58]

void write( msg $msg, [level $level = E_USER_NOTICE])

Write a message to the log file if the current log level allows it.



Tags:

access:  public


Parameters:

msg   $msg   The message to write.
level   $level   The level of the message.

[ Top ]


Documentation generated on Mon, 20 Feb 2012 12:07:17 +0100 by phpDocumentor 1.4.3