TIP_Logger

Introduction

Logger module

Source file
/Type/module/content/logger.php
Extends
TIP_Content

Provides a way to log messages to a data source.

Properties

Methods

__construct ($options)

Constructor

$options
array
Properties values
lines
48 - 51
access
protected

Initializes a TIP_Logger instance.

__destruct ()

Destructor

lines
58 - 63

Stores the cache content in once, if $_cache is an array.

log ($severity, $message)

Append a log

$severity
string
The text of the log
$message
string
A custom message
lines
76 - 166
access
public

Appends a log message to the data source of the logger object.

getLogs () : &array

Get the log array

lines
175 - 178
access
public

Gets the internal log cache.

dumpLogs ()

Echo the log list

lines
186 - 191
access
public

Dumps the log messages to the standard output, if the log cache is not empty.

TIP_Logger was last modified by TiP on Mon 25 May 2009 06:22:25 PM CEST
Hosted by BerliOS Developer Logo