Logger Class
Handle the log statements that get outputted when we're running debug mode. Located in the namespace Logger.
Item Index
Methods
- assertHandler
- init static
- instance static
- log
- render
- setMinimumLevel
Methods
assertHandler
(
-
script
-
line
-
message
Handle asserts from PHP
init
()
static
Initialize the singleton for Logger
instance
()
Logger
static
Get the single instance of Logger
Returns:
Logger:
The singleton instance of Logger
log
(
-
object
-
[level='GENERAL']
-
[htmlEntities=true]
The generic log statement
render
()
String
Get the logger body content
Returns:
String:
The output result of the logger, to be added to a page.
setMinimumLevel
(
-
level
Set the minimum log level required to show
Parameters:
-
level
StringDon't show message with less log level than this
Properties
minLevel
Int
protected
The minimum level show