Public Member Functions | Protected Member Functions

logService Class Reference

Inheritance diagram for logService:
Inheritance graph
[legend]
Collaboration diagram for logService:
Collaboration graph
[legend]

Public Member Functions

 __construct (&$xmlArr)
 log ($priority, $package, $message)
 logError ($level=7, $package, $message, $fileName=NULL, $backTrace= '')
 setFormatter ()
 setExtension ()
 prepFile ($path)
 closeFile ($path)

Protected Member Functions

 readMetadata (&$xmlArr)

Detailed Description

Definition at line 28 of file logService.php.


Constructor & Destructor Documentation

__construct ( &$  xmlArr )

Initialize logService with xml array metadata

Parameters:
array$xmlArr
Returns:
void

Reimplemented from MetaObject.

Definition at line 84 of file logService.php.

Here is the call graph for this function:


Member Function Documentation

closeFile ( path )

Close a file with the correct string depending on the configured format

Returns:
void

Definition at line 335 of file logService.php.

Here is the caller graph for this function:

log ( priority,
package,
message 
)

The primary log function that will take an incoming message and specified paramter and log in the appropriate location and format

Parameters:
int$level- Follow common BSD error levels
string$package- A way to group log messages
string$message- The actual message to log
Returns:
boolean -TRUE on success otherwise FALSE

Definition at line 119 of file logService.php.

Here is the call graph for this function:

logError ( level = 7,
package,
message,
fileName = NULL,
backTrace = '' 
)

The primary log function that will take an incoming message and specified paramter and log in the appropriate location and format

Parameters:
int$level- Follow common BSD error levels
string$package- A way to group log messages
string$message- The actual message to log
string$fileName- An optional specific file name where the message should be logged
string$string- An optional list of the Application stack at the time of error
Returns:
boolean -TRUE on success otherwise FALSE

Definition at line 189 of file logService.php.

Here is the call graph for this function:

prepFile ( path )

Either open a new file with the correct string or remove a previous closing string

Returns:
void

Definition at line 302 of file logService.php.

Here is the caller graph for this function:

readMetadata ( &$  xmlArr ) [protected]

Read array meta data, and store to meta object

Parameters:
array$xmlArr
Returns:
void

Reimplemented from MetaObject.

Definition at line 100 of file logService.php.

Here is the caller graph for this function:

setExtension (  )

Set the extension based on the type of format selected in app.inc

Returns:
void

Definition at line 281 of file logService.php.

Here is the caller graph for this function:

setFormatter (  )

Set the formatter based on the type of format selected in app.inc

Returns:
void

Definition at line 256 of file logService.php.

Here is the caller graph for this function:


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