Provides easy and abstracted logging facilities
| package | BackPress |
|---|
BP_log($level= false, $type= false, $filename= false) : void
_esc_js_log($message)
console_javascript() : void
Must be included in the head of the debug document somehow when using 'console' type.
debug($message, $prefix = false) : boolean
booleanTrue on success, false on failureerror($message) : boolean
If the message is an array, then it sends each index as a separate message
booleanTrue on success, false on failurefail($message) : boolean
If the message is an array, then it sends each index as a separate message
booleanTrue on success, false on failureget_level_from_integer($integer) : string
stringThe logging levelnotice($message) : boolean
If the message is an array, then it sends each index as a separate message
booleanTrue on success, false on failuresend($message= '', $level= BP_LOG_DEBUG, $type= false, $prefix= false) : boolean
booleanTrue on success, false on failureset_filename($filename) : string | boolean
set_level($level) : integer | boolean
set_type($type) : string | false
warning($message) : boolean
If the message is an array, then it sends each index as a separate message
booleanTrue on success, false on failure$console_javascript_loaded : boolean
false$console_javascript_onloads : array
array()$filename : string
''$level : integer
BP_LOG_NONE$type : string
'php'$types : array
array('php', 'file', 'display', 'console')