Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 714 Bytes

2022-04-19.md

File metadata and controls

28 lines (19 loc) · 714 Bytes

Topic: Logging at Ny Media

Resources

Presentation: https://docs.google.com/presentation/d/1e5ZjOBDmC2cJeV5V01YjdQdqxUPEiUjICkjMQBJic04/edit?usp=sharing

Comments

You get a huge file locally

You can use dblog instead of logging to a file by doing this:

  • Enable dblog (if not enabled with config split)
  • Add this to settings.local.php (if not already there):
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/default/services.local.yml';

Then create (or update) a file called 'sites/default/services.local.yml with this content:

parameters:
  # Enable dblog as logger. Requires dblog module to be active.
  monolog.channel_handlers:
    default:
      - drupal.dblog