You are here

public function Logger::log in Module Object Oriented Programming API 7.2

Same name and namespace in other branches
  1. 6.2 component/decorator/moopapi.logger.inc \Logger::log()
  2. 6.2 component/decorator/logger/moopapi.logger.inc \Logger::log()
  3. 6 component/decorator/moopapi.logger.inc \Logger::log()
  4. 6 component/decorator/logger/moopapi.logger.inc \Logger::log()
  5. 7 component/decorator/logger/moopapi.logger.inc \Logger::log()
1 call to Logger::log()
Logger::logCall in component/decorator/logger/moopapi.logger.inc

File

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

Class

Logger
Logger.

Code

public function log($message, $placeholders = array()) {
  $levels = self::getLevels();
  foreach ($levels as $level) {
    if ($this->level & $level) {
      $this
        ->put2log($message, $placeholders);
    }
  }
}