You are here

public function Logger::__construct in Module Object Oriented Programming API 7

Same name and namespace in other branches
  1. 6.2 component/decorator/moopapi.logger.inc \Logger::__construct()
  2. 6.2 component/decorator/logger/moopapi.logger.inc \Logger::__construct()
  3. 6 component/decorator/moopapi.logger.inc \Logger::__construct()
  4. 6 component/decorator/logger/moopapi.logger.inc \Logger::__construct()
  5. 7.2 component/decorator/logger/moopapi.logger.inc \Logger::__construct()

Parameters

IApplication $app:

Overrides Decorator::__construct

2 calls to Logger::__construct()
ApplicationLogger::__construct in component/decorator/logger/moopapi.logger.inc
ControllerLogger::__construct in component/decorator/logger/moopapi.logger.inc
2 methods override Logger::__construct()
ApplicationLogger::__construct in component/decorator/logger/moopapi.logger.inc
ControllerLogger::__construct in component/decorator/logger/moopapi.logger.inc

File

component/decorator/logger/moopapi.logger.inc, line 21

Class

Logger
Logger.

Code

public function __construct($decorators_applied = array(), &$relations = array(), $app) {
  parent::__construct($decorators_applied, $relations, $app);
  $this
    ->setLevel(variable_get('botcha_logger_level', self::LOGGER_DISABLED));
  $this
    ->setDestination(variable_get('botcha_logger_destination', LOGGER_DESTINATION));
  $this
    ->setDateFormat(variable_get('botcha_logger_date_format', self::LOGGER_DATE_FORMAT));
}