phpDocumentor Testlink
[ class tree: Testlink ] [ index: Testlink ] [ all elements ]

Procedural File: logging.inc.php

Source Location: /logging.inc.php

Page Details
Functions
logAuditEvent  [line 30]

void logAuditEvent( $message, [ $activityCode = null], [ $objectID = null], [ $objectType = null]  )

Now any log messages from the levels ERROR or INFO will be recorded.

DEBUG messages will be ignored. We can have as many log entries as we like. They take the form:

tLog("testing level ERROR", 'ERROR'); tLog("testing level INFO", 'INFO'); tLog("testing level DEBUG");

This will add the following entries to the log:

[05/Jan/27 13:05:56][INFO][guest] - Login ok. (Timing: 0.000763) [05/Jan/27 13:06:03][DEBUG][havlatm] - User id = 10, Rights = admin

Parameters:
   $message: 
   $activityCode: 
   $objectID: 
   $objectType: 

Information Tags:
Author:  Andreas Morsing : changed to format of log entries
Author:  Andreas Morsing : errors in extended level will be shown in red instead of inlined as comments

[ Top ]
logWarningEvent  [line 34]

void logWarningEvent( $message, [ $activityCode = null], [ $objectID = null], [ $objectType = null]  )
Parameters:
   $message: 
   $activityCode: 
   $objectID: 
   $objectType: 


[ Top ]
tLog  [line 39]

void tLog( $message, [ $level = 'DEBUG'], [ $source = "GUI"], [ $objectID = null], [ $objectType = null], [ $activityCode = null]  )
Parameters:
   $message: 
   $level: 
   $source: 
   $objectID: 
   $objectType: 
   $activityCode: 


[ Top ]
tlTimingCurrent  [line 91]

void tlTimingCurrent( [ $name = 'default']  )
Parameters:
   $name: 


[ Top ]
tlTimingStart  [line 79]

void tlTimingStart( [ $name = 'default']  )

Optimization

We need a way to test the execution speed of our code before we can easily perform optimizations. A set of timing functions that utilize microtime() is the easiest method:

Parameters:
   $name: 


[ Top ]
tlTimingStop  [line 85]

void tlTimingStop( [ $name = 'default']  )
Parameters:
   $name: 


[ Top ]


Documentation generated on Fri, 03 Apr 2009 14:13:47 +0200 by phpDocumentor 1.4.1