Propel API
Class

MojaviLogAdapter

class MojaviLogAdapter implements BasicLogger

Mojavi logging adapter for propel

Methods

__construct(ErrorLog $logger = null)

constructor for setting up Mojavi log adapter

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, integer $severity = null)

Primary method to handle logging.

Details

at line 31
public __construct(ErrorLog $logger = null)

constructor for setting up Mojavi log adapter

Parameters

ErrorLog $logger Instance of Mojavi error log obtained by calling LogManager::getLogger();

at line 41
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 51
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 61
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 71
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 82
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 91
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 101
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 113
public log(mixed $message, integer $severity = null)

Primary method to handle logging.

Parameters

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