Propel API
Interface

BasicLogger

interface BasicLogger

This is a minimalistic interface that any logging class must implement for Propel.

The API for this interface is based on the PEAR::Log interface. It provides a simple
API that can be used by Propel independently of Log backend.

PEAR::Log and perhaps the Log API was developed by Chuck Hagenbuch <chuck@horde.org>
and Jon Parise <jon@php.net>.

Methods

alert(mixed $message)

A convenience function for logging an alert event.

crit(mixed $message)

A convenience function for logging a critical event.

err(mixed $message)

A convenience function for logging an error event.

warning(mixed $message)

A convenience function for logging a warning event.

notice(mixed $message)

A convenience function for logging an critical event.

info(mixed $message)

A convenience function for logging an critical event.

debug(mixed $message)

A convenience function for logging a debug event.

log(mixed $message, int $severity = null)

Primary method to handle logging.

Details

at line 32
public alert(mixed $message)

A convenience function for logging an alert event.

Parameters

mixed $message String or Exception object containing the message to log.

at line 39
public crit(mixed $message)

A convenience function for logging a critical event.

Parameters

mixed $message String or Exception object containing the message to log.

at line 46
public err(mixed $message)

A convenience function for logging an error event.

Parameters

mixed $message String or Exception object containing the message to log.

at line 53
public warning(mixed $message)

A convenience function for logging a warning event.

Parameters

mixed $message String or Exception object containing the message to log.

at line 59
public notice(mixed $message)

A convenience function for logging an critical event.

Parameters

mixed $message String or Exception object containing the message to log.

at line 65
public info(mixed $message)

A convenience function for logging an critical event.

Parameters

mixed $message String or Exception object containing the message to log.

at line 72
public debug(mixed $message)

A convenience function for logging a debug event.

Parameters

mixed $message String or Exception object containing the message to log.

at line 81
public log(mixed $message, int $severity = null)

Primary method to handle logging.

Parameters

mixed $message String or Exception object containing the message to log.
int $severity The numeric severity. Defaults to null so that no assumptions are made about the logging backend.