[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [patch #2100] [Patch #2100] New PHPGroupware Logg
From: |
noreply |
Subject: |
[Phpgroupware-tracker] [patch #2100] [Patch #2100] New PHPGroupware Logging |
Date: |
Fri, 17 Oct 2003 15:19:48 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
Patch #2100 has been updated.
Project:
Category: API - phpGWapi
Status: Open
Summary: New PHPGroupware Logging
Follow-Ups:
Date: Fri 10/17/2003 at 14:19
By: dwdicks
Comment:
Hmmm... Savannah seems to have eaten my comments... Let's try that again:
The attached patch 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 in time for RC2.
Doug
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://savannah.gnu.org/patch/?func=detailpatch&patch_id=2100&group_id=509
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/