Skip to content
Mathieu Nayrolles edited this page Jan 20, 2016 · 1 revision

MY_Log

Logging Class

  • Class name: MY_Log
  • Namespace:

Properties

$_threshold

protected mixed $_threshold = 1
  • Visibility: protected

$_date_fmt

protected mixed $_date_fmt = 'Y-m-d H:i:s'
  • Visibility: protected

$_levels

protected mixed $_levels = array('ERROR' => '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4')
  • Visibility: protected

Methods

__construct

mixed MY_Log::__construct()

Constructor

  • Visibility: public

write_log

boolean MY_Log::write_log($level, $msg, $php_error)

Write Log to php://stderr

Generally this function will be called using the global log_message() function

  • Visibility: public

Arguments

  • $level mixed
  • $msg mixed
  • $php_error mixed
Clone this wiki locally