\ManiaControlLogger

ManiaControl Logger Class

Summary

Methods
Properties
Constants
getUsageInformation()
setup()
getLogsFolder()
logError()
log()
logInfo()
logWarning()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
setupErrorLogFileName()
cleanLogsFolder()
output()
No private properties found
N/A

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

setup()

setup() 

Setup the logging mechanism

getLogsFolder()

getLogsFolder() : string

Get the logs folder and create it if necessary

Returns

string

logError()

logError(string  $message, boolean  $stripCodes = false, boolean  $eol = true) 

Log and output the given Error message

Parameters

string $message
boolean $stripCodes
boolean $eol

log()

log(string  $message, boolean  $stripCodes = false, boolean  $eol = true) 

Log and output the given message

Parameters

string $message
boolean $stripCodes
boolean $eol

logInfo()

logInfo(string  $message, boolean  $stripCodes = false, boolean  $eol = true) 

Log and output the given Info message

Parameters

string $message
boolean $stripCodes
boolean $eol

logWarning()

logWarning(string  $message, boolean  $stripCodes = false, boolean  $eol = true) 

Log and output the given Warning message

Parameters

string $message
boolean $stripCodes
boolean $eol

setupErrorLogFileName()

setupErrorLogFileName() 

Set the error log file name

cleanLogsFolder()

cleanLogsFolder() : boolean

Delete old ManiaControl log files

Returns

boolean

output()

output(string  $message, boolean  $eol = true) 

Echo the given message

Parameters

string $message
boolean $eol