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

Class: Log_observer

Source Location: /pear/Log/observer.php

Class Overview


The Log_observer:: class implements the Observer end of a Subject-Observer pattern for watching log activity and taking actions on exceptional events.


Author(s):

Methods



Class Details

[line 21]
The Log_observer:: class implements the Observer end of a Subject-Observer pattern for watching log activity and taking actions on exceptional events.



Tags:

author:  Chuck Hagenbuch <chuck@horde.org>
since:  Horde 1.3
since:  Log 1.0
example:  example not found


[ Top ]


Class Methods


constructor Log_observer [line 50]

Log_observer Log_observer( [integer $priority = PEAR_LOG_INFO])

Creates a new basic Log_observer instance.



Tags:

access:  public


Parameters:

integer   $priority   The highest priority at which to receive log event notifications.

[ Top ]

method factory [line 70]

object The &factory( string $type, [integer $priority = PEAR_LOG_INFO], [array $conf = array()])

Attempts to return a new concrete Log_observer instance of the requested type.



Tags:

return:  newly created concrete Log_observer instance, or null on an error.


Parameters:

string   $type   The type of concreate Log_observer subclass to return.
integer   $priority   The highest priority at which to receive log event notifications.
array   $conf   Optional associative array of additional configuration values.

[ Top ]

method notify [line 125]

void notify( array $event)

This is a stub method to make sure that Log_Observer classes do

something when they are notified of a message. The default behavior is to just print the message, which is obviously not desireable in practically any situation - which is why you need to override this method. :)




Parameters:

array   $event   A hash describing the log event.

[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:51:56 +0100 by phpDocumentor 1.4.3