phpgroupware-tracker
[Top][All Lists]
Advanced

[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: Sat, 18 Oct 2003 21:26:46 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428

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
-------------------------------------------------------

Date: Sat 10/18/2003 at 20:26
By: cw

Comment:
the original class was GPL so I'm changing this derived work from LGPL to GPL.  
I'll commit after that's done.
-------------------------------------------------------

-------------------------------------------------------
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/





reply via email to

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