You are here

public function Logger::log in MongoDB 8

TODO implement this method to replace the code in mongodb_watchdog().

Parameters

mixed $level:

string $message:

array $context:

Return value

null|void

File

src/Logger/Logger.php, line 52
Logger functionality (watchdog).

Class

Logger
MongoDB logger implementation for watchdog().

Namespace

Drupal\mongodb\Logger

Code

public function log($level, $message, array $context = array()) {
  echo "Logging {$level}";
  var_dump($message);
}