You are here

Logger.html.twig in Drupal 7 to 8/9 Module Upgrader 8

Contains \Drupal\{{ module }}\Logger\DefaultLogger.

File

templates/Logger.html.twig
View source
  1. /**
  2. * @file
  3. * Contains \Drupal\{{ module }}\Logger\DefaultLogger.
  4. */
  5. namespace Drupal\{{ module }}\Logger;
  6. use Psr\Log\LoggerInterface;
  7. use Psr\Log\LoggerTrait;
  8. class DefaultLogger implements LoggerInterface {
  9. use LoggerTrait;
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public function log($level, $message, array $context = []) {
  14. /**
  15. * @FIXME
  16. * Port your hook_watchdog() logic here.
  17. */
  18. }
  19. }