[wp-trac] Re: [WordPress Trac] #5669: Provide single logging functions to replace logIO(), debug_fwrite() etc.

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 4 06:41:45 GMT 2008


#5669: Provide single logging functions to replace logIO(), debug_fwrite() etc.
-----------------------------------------------------------------+----------
 Reporter:  pishmishy                                            |        Owner:  darkdragon
     Type:  enhancement                                          |       Status:  new       
 Priority:  normal                                               |    Milestone:  2.6       
Component:  General                                              |      Version:  2.3.2     
 Severity:  normal                                               |   Resolution:            
 Keywords:  logging logIO debug_fwrite dubug audit dev-feedback  |  
-----------------------------------------------------------------+----------
Comment (by darkdragon):

 {{{debug.php}}} has what I have so far for the logging and display
 function. The method I decided on is '''3''' and I'm not finished with wp-
 settings.php nor the display function.

 The work flow of the wp_log() is that it can be used in any file, but when
 plugins are loaded, it will allow for a plugin to prevent logging of a
 certain type and severity. Also the display function will display notices
 at the footer of the theme in a nice(?) format for the user to see. It
 also includes filters so that a plugin can alter the appearance.

 The method for a plugin to replace the functionality, is to have a file in
 wp-content named debug.php, which has the definition {{{wp_log()}}} and
 {{{wp_log_shutdown()}}} as well as the constants in debug.php.

 Once I'm done with debug.php, it needs more phpdoc inline documentation
 and need to finish up the display code for the footer.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5669#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list