phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-developers] A Logging Proposal - Implemented


From: Doug Dicks
Subject: [Phpgroupware-developers] A Logging Proposal - Implemented
Date: Fri, 17 Oct 2003 14:24:23 -0500

Chris and other interested parties,

I've submitted a patch on Savannah
(http://savannah.gnu.org/patch/index.php?func=detailpatch&patch_id=2100&group_id=509)
 that implements the new application logging approach discussed in 
http://mail.gnu.org/archive/html/phpgroupware-developers/2003-10/msg00008.html

The patch is against Version-0_9_16-branch, as of about 13:00 GMT on 17
Oct 2003.

I've tested it with a pull from that CVS, as an upgrade from RC1, and as
an upgrade from 0.9.14.006.

Examples of logging at the debug level:

log_debug('This is a log message');
log_debug('foo has a value %1', $foo);
log_debug('foo has a value %1, bar is %2', $foo, $bar);
log_debug(array('text' => 'foo as a value %1, bar is %2',
                'p1'   => $foo,
                'p2'   => $bar,
                'line' => __LINE__,
                'file' => __FILE__));

>From most severe to least, the functions are:  log_fatal(), log_error(),
log_warn(), log_info(), and log_debug().

The new classes are backward compatible with the old.

The logging levels can be changed at run time by using the new "Edit Log
Levels" option in the admin module.  "View error log" displays the log
records, as it did before.  

email me (address@hidden) if there are any questions.

Hopefully this is suitable for RC2.

Doug
-- 
Doug Dicks
Revelant Technologies






reply via email to

[Prev in Thread] Current Thread [Next in Thread]