LogMaster Class Reference

List of all members.

Public Member Functions

 __construct ()
 log ($str="", $data="")
 get_session_log ()
 error_log ($errn, $errstr, $file, $line, $context)
 enable_log ($name)

Private Member Functions

 log_details ($data, $pref="")

Private Attributes

 $_log
 logging mode flag
 $session
 all messages generated for current request


Detailed Description

Controls error and debug logging.

Constructor & Destructor Documentation

__construct (  ) 

constructor


Member Function Documentation

enable_log ( name  ) 

enable logging

Parameters:
$name path to the log file, if false provided as valut - logging will be disabled

error_log ( errn,
errstr,
file,
line,
context 
)

error handler, put normal php errors in log file

Parameters:
errn error number
errstr error description
file error file
line error line
context error cntext

get_session_log (  ) 

get logs for current request

Returns:
string, which contains all log messages generated for current request

log ( str = "",
data = "" 
)

put record in log

Parameters:
str string with log info, optional
data data object, which will be added to log, optional

log_details ( data,
pref = "" 
) [private]

convert array to string representation ( it is a bit more readable than var_dump )

Parameters:
data data object
pref prefix string, used for formating, optional
Returns:
string with array description


Member Data Documentation

$_log [private]

logging mode flag

$session [private]

all messages generated for current request


The documentation for this class was generated from the following file:

Generated on Tue Mar 3 20:06:24 2009 for dhxmlXConnector by  doxygen 1.5.8