Class Log_error_log

Description

The Log_error_log class is a concrete implementation of the Log abstract class that logs messages using PHP's error_log() function.

  • example: example not found
  • since: Log 1.7.0
  • author: Jon Parise <jon@php.net>

Located in /maintenance/libraries/pear/Log/error_log.php (line 19)

Log
   |
   --Log_error_log
Variable Summary
 string $_destination
 integer $_type
Method Summary
 Log_error_log Log_error_log (string $name, [string $ident = ''], [array $conf = array()], [int $level = PEAR_LOG_DEBUG])
 boolean log (mixed $message, [string $priority = null])
Variables
string $_destination = '' (line 33)

The type-specific destination value.

  • access: private
string $_extra_headers = '' (line 41)

Additional headers to pass to the mail() function when the PEAR_LOG_TYPE_MAIL type is used.

  • access: private
integer $_type = PEAR_LOG_TYPE_SYSTEM (line 26)

The error_log() log type.

  • access: private

Inherited Variables

Inherited from Log

Log::$_id
Log::$_ident
Log::$_listeners
Log::$_mask
Log::$_opened
Log::$_priority
Methods
Constructor Log_error_log (line 52)

Constructs a new Log_error_log object.

  • access: public
Log_error_log Log_error_log (string $name, [string $ident = ''], [array $conf = array()], [int $level = PEAR_LOG_DEBUG])
  • string $name: Ignored.
  • string $ident: The identity string.
  • array $conf: The configuration array.
  • int $level: Log messages up to and including this level.
log (line 80)

Logs $message using PHP's error_log() function. The message is also passed along to any Log_observer instances that are observing this Log.

  • return: True on success or false on failure.
  • access: public
boolean log (mixed $message, [string $priority = null])
  • mixed $message: String or object containing the message to log.
  • string $priority: The priority of the message. Valid values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT, PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING, PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.

Redefinition of:
Log::log()
Abstract implementation of the log() method.

Inherited Methods

Inherited From Log

 Log::alert()
 Log::attach()
 Log::close()
 Log::crit()
 Log::debug()
 Log::detach()
 Log::emerg()
 Log::err()
 Log::factory()
 Log::flush()
 Log::getIdent()
 Log::getMask()
 Log::getPriority()
 Log::info()
 Log::isComposite()
 Log::log()
 Log::MASK()
 Log::notice()
 Log::open()
 Log::priorityToString()
 Log::setIdent()
 Log::setMask()
 Log::setPriority()
 Log::singleton()
 Log::UPTO()
 Log::warning()
 Log::_announce()
 Log::_extractMessage()
 Log::_isMasked()

Documentation generated on Fri, 11 Feb 2005 18:13:06 +0000 by phpDocumentor 1.3.0RC3