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

Primary method to handle logging.

Details

at line 32
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 43
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 54
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 65
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 76
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 88
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 98
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 109
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 122
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.