ILIAS
Release_4_1_x_branch Revision 61804
|
Public Member Functions | |
Log_win ($name, $ident= '', $conf=array(), $level=PEAR_LOG_DEBUG) | |
Constructs a new Log_win object. | |
_Log_win () | |
Destructor. | |
open () | |
The first time open() is called, it will open a new browser window and prepare it for output. | |
close () | |
Closes the output stream if it is open. | |
_drainBuffer () | |
Writes the contents of the output buffer to the output window. | |
_writeln ($line) | |
Writes a single line of text to the output buffer. | |
log ($message, $priority=null) | |
Logs $message to the output window. | |
Public Member Functions inherited from Log | |
_classExists ($class) | |
Utility function which wraps PHP's class_exists() function to ensure consistent behavior between PHP versions 4 and 5. | |
& | factory ($handler, $name= '', $ident= '', $conf=array(), $level=PEAR_LOG_DEBUG) |
Attempts to return a concrete Log instance of type $handler. | |
& | singleton ($handler, $name= '', $ident= '', $conf=array(), $level=PEAR_LOG_DEBUG) |
Attempts to return a reference to a concrete Log instance of type $handler, only creating a new instance if no log instance with the same parameters currently exists. | |
flush () | |
Abstract implementation of the flush() method. | |
emerg ($message) | |
A convenience function for logging a emergency event. | |
alert ($message) | |
A convenience function for logging an alert event. | |
crit ($message) | |
A convenience function for logging a critical event. | |
err ($message) | |
A convenience function for logging a error event. | |
warning ($message) | |
A convenience function for logging a warning event. | |
notice ($message) | |
A convenience function for logging a notice event. | |
info ($message) | |
A convenience function for logging a information event. | |
debug ($message) | |
A convenience function for logging a debug event. | |
_extractMessage ($message) | |
Returns the string representation of the message data. | |
_getBacktraceVars ($depth) | |
Using debug_backtrace(), returns the file, line, and enclosing function name of the source code context from which log() was invoked. | |
_format ($format, $timestamp, $priority, $message) | |
Produces a formatted log line based on a format string and a set of variables representing the current log record and state. | |
priorityToString ($priority) | |
Returns the string representation of a PEAR_LOG_* integer constant. | |
stringToPriority ($name) | |
Returns the the PEAR_LOG_* integer constant for the given string representation of a priority name. | |
MASK ($priority) | |
Calculate the log mask for the given priority. | |
UPTO ($priority) | |
Calculate the log mask for all priorities up to the given priority. | |
MIN ($priority) | |
Calculate the log mask for all priorities greater than or equal to the given priority. | |
MAX ($priority) | |
Calculate the log mask for all priorities less than or equal to the given priority. | |
setMask ($mask) | |
Set and return the level mask for the current Log instance. | |
getMask () | |
Returns the current level mask. | |
_isMasked ($priority) | |
Check if the given priority is included in the current level mask. | |
getPriority () | |
Returns the current default priority. | |
setPriority ($priority) | |
Sets the default priority to the specified value. | |
attach (&$observer) | |
Adds a Log_observer instance to the list of observers that are listening for messages emitted by this Log instance. | |
detach ($observer) | |
Removes a Log_observer instance from the list of observers. | |
_announce ($event) | |
Informs each registered observer instance that a new message has been logged. | |
isComposite () | |
Indicates whether this is a composite class. | |
setIdent ($ident) | |
Sets this Log instance's identification string. | |
getIdent () | |
Returns the current identification string. |
Data Fields | |
$_name = 'LogWindow' | |
$_title = 'Log Output Window' | |
$_styles | |
$_buffer = array() | |
Data Fields inherited from Log | |
$_opened = false | |
$_id = 0 | |
$_ident = '' | |
$_priority = PEAR_LOG_INFO | |
$_mask = PEAR_LOG_ALL | |
$_listeners = array() | |
$_formatMap |
Log_win::_drainBuffer | ( | ) |
Writes the contents of the output buffer to the output window.
private
Definition at line 198 of file win.php.
References $_name.
Referenced by _writeln(), and close().
Log_win::_Log_win | ( | ) |
Log_win::_writeln | ( | $line | ) |
Writes a single line of text to the output buffer.
string | $line | The line of text to write. |
private
Definition at line 219 of file win.php.
References _drainBuffer(), and open().
Referenced by close(), and log().
Log_win::close | ( | ) |
Closes the output stream if it is open.
If there are still pending lines in the output buffer, the output window will be opened so that the buffer can be drained.
public
Reimplemented from Log.
Definition at line 173 of file win.php.
References _drainBuffer(), _writeln(), and open().
Referenced by _Log_win().
Log_win::log | ( | $message, | |
$priority = null |
|||
) |
Logs $message to the output window.
The message is also passed along to any Log_observer instances that are observing this Log.
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. |
Reimplemented from Log.
Definition at line 250 of file win.php.
References Log\$_priority, Log\_announce(), Log\_extractMessage(), Log\_isMasked(), _writeln(), and Log\priorityToString().
Log_win::Log_win | ( | $name, | |
$ident = '' , |
|||
$conf = array() , |
|||
$level = PEAR_LOG_DEBUG |
|||
) |
Constructs a new Log_win object.
string | $name | Ignored. |
string | $ident | The identity string. |
array | $conf | The configuration array. |
int | $level | Log messages up to and including this level. public |
Definition at line 72 of file win.php.
References Log\UPTO().
Log_win::open | ( | ) |
The first time open() is called, it will open a new browser window and prepare it for output.
This is implicitly called by log(), if necessary.
public
Reimplemented from Log.
Definition at line 113 of file win.php.
References $_name, Log\$_opened, and $_styles.
Referenced by _writeln(), and close().
Log_win::$_name = 'LogWindow' |
Definition at line 31 of file win.php.
Referenced by _drainBuffer(), and open().
Log_win::$_styles |
Definition at line 45 of file win.php.
Referenced by open().