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

Class: tlLogger

Source Location: /logger.class.php

Class tlLogger

Class Overview

TestLink Open Source Project - http://testlink.sourceforge.net/

Filename $RCSfile: tlLogger.html,v $

Located in /logger.class.php [line 30]

tlObject
   |
   --tlLogger
Author(s):
  • Andreas Morsing

    Log Functions

    A great way to debug is through logging. It's even easier if you can leave the log messages through your code and turn them on and off with a single command. To facilitate this we will create a number of logging functions.

    rev: 20080517 - franciscom - exclude mktime() logs

    20080316 - franciscom - added getEnableLoggingStatus() methods refactored access to enable logging status info. refactored enable/disable logging Added code to configure individual loggers using new config $g_loggerCfg

    20080315 - franciscom - discovered bug on tlTransaction->writeToDB thanks to POSTGRES watchPHPErrors() - added new error to suppress 20080216 - franciscom - limit length of entryPoint

Information Tags:
Version:  $Revision: 1.1.2.1 $

Properties

Methods

[ Top ]
Property Summary
static mixed   $logLevels  
static mixed   $revertedLogLevels  
mixed   $doLogging  
mixed   $eventManager  
mixed   $loggers  
mixed   $logLevelFilter  
mixed   $transactions  

[ Top ]
Method Summary
static void   create()  
tlLogger   __construct()  
void   __destruct()  
void   deleteEventsFor()  
void   disableLogging()  
void   enableLogging()  
void   endTransaction()  
void   getAuditEventsFor()  
void   getEnableLoggingStatus()  
void   getEventsFor()  
void   getTransaction()  
void   setLogLevelFilter()  
void   startTransaction()  

[ Top ]
Properties
static mixed   $logLevels = null [line 44]

[ Top ]
static mixed   $revertedLogLevels = null [line 45]

[ Top ]
mixed   $doLogging = true [line 48]
API Tags:
Access:  protected


[ Top ]
mixed   $eventManager [line 67]
API Tags:
Access:  protected


[ Top ]
mixed   $loggers = null [line 61]
API Tags:
Access:  protected


[ Top ]
mixed   $logLevelFilter = null [line 65]
API Tags:
Access:  protected


[ Top ]
mixed   $transactions = null [line 58]
API Tags:
Access:  protected


[ Top ]
Methods
static method create  [line 183]

  static void create( &$db  )

Parameters:
   &$db: 

API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 69]

  tlLogger __construct( &$db  )

Parameters:
   &$db: 

API Tags:
Access:  public


Redefinition of:
tlObject::__construct()

[ Top ]
Destructor __destruct  [line 81]

  void __destruct( )


API Tags:
Access:  public


Redefinition of:
tlObject::__destruct()

[ Top ]
deleteEventsFor  [line 98]

  void deleteEventsFor( [ $logLevels = null], [ $startTime = null]  )

Parameters:
   $logLevels: 
   $startTime: 

API Tags:
Access:  public


[ Top ]
disableLogging  [line 126]

  void disableLogging( [ $logger = null]  )

Parameters:
   $logger: 

API Tags:
Access:  public


[ Top ]
enableLogging  [line 149]

  void enableLogging( [ $logger = null]  )

Parameters:
   $logger: 

API Tags:
Access:  public


[ Top ]
endTransaction  [line 244]

  void endTransaction( [ $name = "DEFAULT"]  )

Parameters:
   $name: 

API Tags:
Access:  public


[ Top ]
getAuditEventsFor  [line 85]

  void getAuditEventsFor( [ $objectIDs = null], [ $objectTypes = null], [ $activityCodes = null], [ $limit = -1], [ $startTime = null], [ $endTime = null]  )

Parameters:
   $objectIDs: 
   $objectTypes: 
   $activityCodes: 
   $limit: 
   $startTime: 
   $endTime: 

API Tags:
Access:  public


[ Top ]
getEnableLoggingStatus  [line 163]

  void getEnableLoggingStatus( [ $logger = null]  )

Parameters:
   $logger: 

API Tags:
Access:  public


[ Top ]
getEventsFor  [line 91]

  void getEventsFor( [ $logLevels = null], [ $objectIDs = null], [ $objectTypes = null], [ $activityCodes = null], [ $limit = -1], [ $startTime = null], [ $endTime = null]  )

Parameters:
   $logLevels: 
   $objectIDs: 
   $objectTypes: 
   $activityCodes: 
   $limit: 
   $startTime: 
   $endTime: 

API Tags:
Access:  public


[ Top ]
getTransaction  [line 174]

  void getTransaction( [ $name = "DEFAULT"]  )

Parameters:
   $name: 

API Tags:
Access:  public


[ Top ]
setLogLevelFilter  [line 107]

  void setLogLevelFilter( $filter  )

Parameters:
   $filter: 

API Tags:
Access:  public


[ Top ]
startTransaction  [line 206]

  void startTransaction( [ $name = "DEFAULT"], [ $entryPoint = null], [ $userID = null]  )

Parameters:
   $name: 
   $entryPoint: 
   $userID: 

API Tags:
Access:  public


[ Top ]
Constants
AUDIT = 16 [line 42]

[ Top ]
DEBUG = 8 [line 41]

[ Top ]
ENTRYPOINT_MAX_LEN = 45 [line 51]

[ Top ]
ERROR = 1 [line 38]

[ Top ]
INFO = 4 [line 40]

[ Top ]
WARNING = 2 [line 39]

[ Top ]

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