Moodle  2.2.1
http://www.collinsharper.com
XMPPHP_Log Class Reference

Public Member Functions

 __construct ($printout=false, $runlevel=self::LEVEL_INFO)
 log ($msg, $runlevel=self::LEVEL_INFO)
 printout ($clear=true, $runlevel=null)

Data Fields

const LEVEL_ERROR = 0
const LEVEL_WARNING = 1
const LEVEL_INFO = 2
const LEVEL_DEBUG = 3
const LEVEL_VERBOSE = 4

Protected Member Functions

 writeLine ($msg, $runlevel, $time)

Protected Attributes

 $data = array()
 $names = array('ERROR', 'WARNING', 'INFO', 'DEBUG', 'VERBOSE')
 $runlevel
 $printout

Detailed Description

Definition at line 39 of file Log.php.


Constructor & Destructor Documentation

__construct ( printout = false,
runlevel = self::LEVEL_INFO 
)

Constructor

Parameters:
boolean$printout
string$runlevel

Definition at line 73 of file Log.php.

Here is the call graph for this function:


Member Function Documentation

log ( msg,
runlevel = self::LEVEL_INFO 
)

Add a message to the log data array If printout in this instance is set to true, directly output the message

Parameters:
string$msg
integer$runlevel

Definition at line 85 of file Log.php.

Here is the call graph for this function:

printout ( clear = true,
runlevel = null 
)

Output the complete log. Log will be cleared if $clear = true

Parameters:
boolean$clear
integer$runlevel

Definition at line 100 of file Log.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeLine ( msg,
runlevel,
time 
) [protected]

Definition at line 114 of file Log.php.

Here is the caller graph for this function:


Field Documentation

$data = array() [protected]

Definition at line 50 of file Log.php.

$names = array('ERROR', 'WARNING', 'INFO', 'DEBUG', 'VERBOSE') [protected]

Definition at line 55 of file Log.php.

$printout [protected]

Definition at line 65 of file Log.php.

$runlevel [protected]

Definition at line 60 of file Log.php.

const LEVEL_DEBUG = 3

Definition at line 44 of file Log.php.

const LEVEL_ERROR = 0

Definition at line 41 of file Log.php.

const LEVEL_INFO = 2

Definition at line 43 of file Log.php.

const LEVEL_VERBOSE = 4

Definition at line 45 of file Log.php.

const LEVEL_WARNING = 1

Definition at line 42 of file Log.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations