You are here

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

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

File

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

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);
    }
  }
}