ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Log Namespace Reference

$Header$ More...

Detailed Description

$Header$

The Log:: class implements both an abstraction for various logging mechanisms and the Subject end of a Subject-Observer pattern.

The Log_win class is a concrete implementation of the Log abstract class that logs messages to a separate browser window.

The Log_syslog class is a concrete implementation of the Log:: abstract class which sends messages to syslog on UNIX-like machines (PHP emulates this with the Event Log on Windows machines).

The Log_sqlite class is a concrete implementation of the Log:: abstract class which sends messages to an Sqlite database.

We require the PEAR DB class.

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

The Log_null class is a concrete implementation of the Log:: abstract class.

The Log_mdb2 class is a concrete implementation of the Log:: abstract class which sends messages to an SQL server.

The Log_mcal class is a concrete implementation of the Log:: abstract class which sends messages to a local or remote calendar store accessed through MCAL.

The Log_mail class is a concrete implementation of the Log:: abstract class which sends log messages to a mailbox.

The Log_firebug class is a concrete implementation of the Log:: abstract class which writes message into Firebug console.

The Log_file class is a concrete implementation of the Log abstract class that logs messages to a text file.

The Log_error_log class is a concrete implementation of the Log abstract class that logs messages using PHP's error_log() function.

The Log_display class is a concrete implementation of the Log:: abstract class which writes message into browser in usual PHP maner.

The Log_daemon class is a concrete implementation of the Log:: abstract class which sends messages to syslog daemon on UNIX-like machines.

The Log_console class is a concrete implementation of the Log:: abstract class which writes message to the text console.

The Log_composite:: class implements a Composite pattern which allows multiple Log implementations to receive the same events.

Horde:
horde/lib/Log/composite.php,v 1.2 2000/06/28 21:36:13 jon Exp
Version
Revision:
215528
Author
Chuck Hagenbuch chuck.nosp@m.@hor.nosp@m.de.or.nosp@m.g
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Horde 1.3
Log 1.0
Version
Revision:
224513
Author
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Log 1.1
Version
Revision:
250926

This class uses the syslog protocol: http://www.ietf.org/rfc/rfc3164.txt

Author
Bart van der Schans schan.nosp@m.s@dd.nosp@m.s.nl
Version
Revision:
250926
Version
Revision:
255603

This may be useful because when you use PEAR::setErrorHandling in PEAR_ERROR_CALLBACK mode error messages are not displayed by PHP error handler.

Author
Paul Yanchenko pushe.nosp@m.r@in.nosp@m.aco.r.nosp@m.u
Since
Log 1.8.0
Version
Revision:
266582
Author
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Log 1.7.0
Author
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Roman Neuhauser neuha.nosp@m.user.nosp@m.@bell.nosp@m.avis.nosp@m.ta.cz
Since
Log 1.0
Version
Revision:
250923

http://www.getfirebug.com/

Author
Mika Tuupola tuupo.nosp@m.la@a.nosp@m.ppels.nosp@m.iini.nosp@m..net
Since
Log 1.9.11
Version
Revision:
266658

The mail is actually sent when you close() the logger, or when the destructor is called (when the script is terminated).

PLEASE NOTE that you must create a Log_mail object using =&, like this : $logger =& Log::factory("mail", "recipient@example.com", ...)

This is a PEAR requirement for destructors to work properly. See http://pear.php.net/manual/en/class.pear.php

Author
Ronnie Garcia ronni.nosp@m.e@mk.nosp@m.2.net
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Log 1.3
Horde:
horde/lib/Log/mcal.php,v 1.2 2000/06/28 21:36:13 jon Exp
Version
Revision:
180836
Author
Chuck Hagenbuch chuck.nosp@m.@hor.nosp@m.de.or.nosp@m.g
Since
Horde 1.3
Log 1.0
Version
Revision:
204814

Each entry occupies a separate row in the database.

This implementation uses PEAR's MDB2 database abstraction layer.

CREATE TABLE log_table ( id INT NOT NULL, logtime TIMESTAMP NOT NULL, ident CHAR(16) NOT NULL, priority INT NOT NULL, message VARCHAR(200), PRIMARY KEY (id) );

Author
Lukas Smith smith.nosp@m.@bac.nosp@m.kendm.nosp@m.edia.nosp@m..com
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Log 1.9.0
Version
Revision:
215527

It simply consumes log events.

Author
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Log 1.8.2
Horde:
horde/lib/Log/observer.php,v 1.5 2000/06/28 21:36:13 jon Exp
Version
Revision:
211953
Horde:
horde/lib/Log/sql.php,v 1.12 2000/08/16 20:27:34 chuck Exp
Version
Revision:
250926

This is generally defined in the DB.php file, but it's possible that the caller may have provided the DB class, or a compatible wrapper (such as the one shipped with MDB2), so we first check for an existing 'DB' class before including 'DB.php'. The Log_sql class is a concrete implementation of the Log:: abstract class which sends messages to an SQL server. Each entry occupies a separate row in the database.

This implementation uses PHP's PEAR database abstraction layer.

CREATE TABLE log_table ( id INT NOT NULL, logtime TIMESTAMP NOT NULL, ident CHAR(16) NOT NULL, priority INT NOT NULL, message VARCHAR(200), PRIMARY KEY (id) );

Author
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Horde 1.3
Log 1.0
Version
Revision:
202069

Each entry occupies a separate row in the database.

This implementation uses PHP native Sqlite functions.

CREATE TABLE log_table ( id INTEGER PRIMARY KEY NOT NULL, logtime NOT NULL, ident CHAR(16) NOT NULL, priority INT NOT NULL, message );

Author
Bertrand Mansion bmans.nosp@m.ion@.nosp@m.mamas.nosp@m.am.c.nosp@m.om
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Log 1.8.3
Horde:
horde/lib/Log/syslog.php,v 1.6 2000/06/28 21:36:13 jon Exp
Version
Revision:
228384
Version
Revision:
278003

The concept for this log handler is based on part by Craig Davis' article entitled "JavaScript Power PHP Debugging:

http://www.zend.com/zend/tut/tutorial-DebugLib.php

Author
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Log 1.7.0
Header:
/repository/pear/Log/Log.php,v 1.74 2008/11/19 04:14:38 jon Exp
Horde:
horde/lib/Log.php,v 1.15 2000/06/29 23:39:45 jon Exp
Version
Revision:
1.74
Author
Chuck Hagenbuch chuck.nosp@m.@hor.nosp@m.de.or.nosp@m.g
Jon Parise jon@p.nosp@m.hp.n.nosp@m.et
Since
Horde 1.3