[ Index ]

PHP Cross Reference of BackPress

title

Body

[close]

/includes/ -> class.bp-log.php (summary)

BackPress logging level constants

File Size: 553 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_Log:: (19 methods):
  __construct()
  BP_log()
  set_level()
  set_type()
  set_filename()
  send()
  get_level_from_integer()
  format_message()
  debug()
  notice()
  warning()
  error()
  fail()
  console_javascript()
  bp_log_send()
  bp_log_add()
  bp_log_process()
  bp_log_onload()
  _esc_js_log()


Class: BP_Log  - X-Ref

Provides easy and abstracted logging facilities

__construct($level = false, $type = false, $filename = false)   X-Ref
Initialises the logging

return: void

BP_log($level = false, $type = false, $filename = false)   X-Ref
No description

set_level($level)   X-Ref
Sets the logging level

return: integer|boolean The old level on success or false

set_type($type)   X-Ref
Sets the logging type

return: string|false The old type on success or false

set_filename($filename)   X-Ref
Sets the logging filename

return: string|boolean The old filename on success or false

send($message = '', $level = BP_LOG_DEBUG, $type = false, $prefix = false)   X-Ref
Sends a message to the log

return: boolean True on success, false on failure

get_level_from_integer($integer)   X-Ref
Gets the name of the log level from an integer

return: string The logging level

format_message($message, $level = BP_LOG_DEBUG, $prefix = false, $tabs = 0)   X-Ref
Formats a message for output to a log file

return: boolean True on success, false on failure

debug($message, $prefix = false)   X-Ref
Send a debug message

return: boolean True on success, false on failure

notice($message)   X-Ref
Send a notice message

If the message is an array, then it sends each index as a separate message

return: boolean True on success, false on failure

warning($message)   X-Ref
Send a warning message

If the message is an array, then it sends each index as a separate message

return: boolean True on success, false on failure

error($message)   X-Ref
Send an error message

If the message is an array, then it sends each index as a separate message

return: boolean True on success, false on failure

fail($message)   X-Ref
Send an error message and die

If the message is an array, then it sends each index as a separate message

return: boolean True on success, false on failure

console_javascript()   X-Ref
Outputs javascript functions for the head of the html document

Must be included in the head of the debug document somehow when using 'console' type.

return: void

bp_log_send(message, level, time)   X-Ref
No description

bp_log_add(message, level, time)   X-Ref
No description

bp_log_process()   X-Ref
No description

bp_log_onload()   X-Ref
No description

_esc_js_log( $message )   X-Ref
No description



Generated: Sun Dec 16 01:01:52 2018 Cross-referenced by PHPXref 0.7.1