bigace.classes.logger
[ class tree: bigace.classes.logger ] [ index: bigace.classes.logger ] [ all elements ]

Class: Logger

Source Location: /classes/logger/Logger.php

Class Overview


The BIGACE Logger is used as Interface.


Variables

Methods


Child classes:

FileLogger
This Logger saves any kind of logging message to a file.
RuntimeLogger
This BIGACE Logger saves all messages within an internal array. You may fetch these messages at the end of the call and use them for whatever you want (output in html, save to file...).

Inherited Constants

Inherited Variables

Inherited Methods


Class Details

[line 33]
The BIGACE Logger is used as Interface.



[ Top ]


Class Variables

$ERROR_LEVEL = array (
                        E_STRICT            => "Runtime Notice",
                        E_ERROR             => "PHP Error",
                        E_WARNING           => "PHP Warning",
                        E_PARSE             => "Parsing Error",
                        E_NOTICE            => "Script Notice",
                        E_CORE_ERROR        => "Core Error",
                        E_CORE_WARNING      => "Core Warning",
                        E_COMPILE_ERROR     => "Compile Error",
                        E_COMPILE_WARNING   => "Compile Warning",
                        E_USER_ERROR        => "ERR",
                        E_USER_WARNING      => "WARN",
                        E_USER_NOTICE       => "INF",
                        E_DEBUG             => "DEB",
                        E_SQL               => "SQL"
                 )

[line 39]


Type:   mixed


[ Top ]

$user_errors = array(E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE)

[line 36]


Type:   mixed


[ Top ]



Class Methods


method finalize [line 140]

void finalize( )

Clean up all resources that might be used by this Logger!



Overridden in child classes as:

FileLogger::finalize()
RuntimeLogger::finalize()

[ Top ]

method getDescriptionForMode [line 59]

void getDescriptionForMode( mixed $mode)

Returns the Description for the given Mode.



[ Top ]

method isDebugEnabled [line 106]

void isDebugEnabled( )

Returns if Debugging is enabled



[ Top ]

method isModeEnabled [line 110]

void isModeEnabled( mixed $mode)



[ Top ]

method log [line 98]

void log( mixed $mode, mixed $msg)

Log a message for a special mode, use this if you wanna use your own level/mode!



Overridden in child classes as:

FileLogger::log()
RuntimeLogger::log()

[ Top ]

method logDebug [line 84]

void logDebug( mixed $msg)

Messages of this Type are mostly used for development or error search!



[ Top ]

method logError [line 69]

void logError( mixed $msg)

Messages of this Type will always be logged!



[ Top ]

method logInfo [line 77]

void logInfo( mixed $msg)

Messages of this Type are used for information messages.

Not used for deep level information but more for real important calls!




[ Top ]

method logScriptError [line 117]

void logScriptError( mixed $errno, mixed $errmsg, mixed $filename, mixed $linenum, mixed $vars)

Callback function for the PHP logging mechanism.



[ Top ]

method logSQL [line 91]

void logSQL( mixed $msg, [mixed $sql = ''])

Log SQL Commands



[ Top ]


Documentation generated on Tue, 11 Oct 2005 23:02:14 +0200 by phpDocumentor 1.3.0RC2