Log
[ class tree: Log ] [ index: Log ] [ all elements ]

Class: Log_display

Source Location: /HTML_Progress-1.2.0RC3/examples/errorstack/display184.php

Class Overview

Log
   |
   --Log_display

The Log_display class is a concrete implementation of the Log:: abstract class which writes message into browser in usual PHP maner.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 22]
The Log_display class is a concrete implementation of the Log:: abstract class which writes message into browser in usual PHP maner.

This may be useful because when you use PEAR::setErrorHandling in PEAR_ERROR_CALLBACK mode error messages are not displayed by PHP error handler.

  • Author: Paul Yanchenko <pusher@inaco.ru>
  • Since: Log 1.8.0
  • Example: example not found


[ Top ]


Method Detail

Log_display (Constructor)   [line 48]

Log_display Log_display( [string $name = ''], [string $ident = ''], [array $conf = array()], [int $level = PEAR_LOG_DEBUG])

Constructs a new Log_display object.
  • Access: public

Parameters:

string   $name   —  Ignored.
string   $ident   —  The identity string.
array   $conf   —  The configuration array.
int   $level   —  Log messages up to and including this level.

[ Top ]

log   [line 80]

boolean log( mixed $message, [string $priority = null])

Writes $message to the text browser. Also, passes the message along to any Log_observer instances that are observing this Log.
  • Return: True on success or false on failure.
  • Access: public

Parameters:

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.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:52:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.