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

Class: Log_observer

Source Location: /Log-1.12.7/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


Child classes:

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

Inherited Variables

Inherited 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.
  • Author: Chuck Hagenbuch <chuck@horde.org>
  • Since: Horde 1.3
  • Since: Log 1.0
  • Example: example not found


[ Top ]


Method Detail

Log_observer (Constructor)   [line 50]

Log_observer Log_observer( [integer $priority = PEAR_LOG_INFO])

Creates a new basic Log_observer instance.
  • Access: public

Parameters:

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

[ Top ]

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.
  • 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 ]

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. :)


Overridden in child classes as:

Log_observer_mail::notify()

Parameters:

array   $event     A hash describing the log event.

[ Top ]


Documentation generated on Mon, 19 Sep 2011 02:00:07 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.