\JCORE\LOGLOGGER

Class LOGGER

Summary

Methods
Properties
Constants
__construct()
writeToFile()
log()
__destruct()
No public properties found
No constants found
No protected methods found
$errors
$traceString
N/A
initFILE()
initUDP()
$settings
$logFacility
N/A

Properties

$errors

$errors : array

errors

Type

array

$traceString

$traceString : string

traceString

Type

string

$settings

$settings : string

settings

Type

string

$logFacility

$logFacility : string

logFacility

Type

string

Methods

__construct()

__construct(  $settings = NULL) : mixed

Constructor make this as dynamic as possible

Parameters

$settings

Returns

mixed

writeToFile()

writeToFile(  $args = null) : null

DESCRIPTOR: writeToFile

Parameters

$args

Returns

null

log()

log(  $debugLevel = LOG_DEBUG,   $Error = '',   $Desc = '',   $CC = null) : null

DESCRIPTOR: IE: This always returns a myclass

debugLevel see: JCORE/CONFIG/SERVICES/LOG/logServices.ini or http://us.php.net/manual/en/function.syslog.php Error: error name or ID Desc: long description CC: "Carbon Copy" send the log to another logger as well accepts: string [one of the Loggers defined in JCORE/LOAD/BOOTSTRAP.php] OR object an instantiated instance of this class or one that uses a "log" method with the same signature (debugLevel=LOG_DEBUG, Error ='', Desc ='')

Parameters

$debugLevel
$Error
$Desc
$CC

Returns

null

__destruct()

__destruct() : NULL

DESCRIPTOR: writes errors to log on destruction

Returns

NULL

initFILE()

initFILE() : null

DESCRIPTOR: sets up the class for file output

Returns

null

initUDP()

initUDP() : null

DESCRIPTOR: sets up the class for UDP output

Returns

null