public function emit(array $record) { if (in_array($record['level'], array(Logging::ERROR, Logging::CRITICAL))) { return \ChromePHP::error($record['message']); } elseif ($record['level'] == Logging::WARNING) { return \ChromePHP::warn($record['message']); } else { return \ChromePHP::log($record['message']); } }
public function emit(array $record) { switch ($record['level']) { case Logging::WARNING: return \ChromePHP::warn($record['message']); case Logging::ERROR: case Logging::CRITICAL: return \ChromePHP::error($record['message']); default: return \ChromePHP::log($record['message']); } }