Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure monolog as default #304

Open
Juhani-moilanen opened this issue Jul 19, 2022 · 0 comments
Open

Configure monolog as default #304

Juhani-moilanen opened this issue Jul 19, 2022 · 0 comments

Comments

@Juhani-moilanen
Copy link
Contributor

Add monolog config so that all new projects use it by default

  • add "monolog.services.yml" to sites/default/
  • use "monolog.services.yml" in settings.php

"monolog.services.yml"

parameters:
  monolog.channel_handlers:
    default: ['stream']
  monolog.processors: ['message_placeholder', 'current_user', 'request_uri', 'ip', 'referer']

services:
  monolog.handler.stream:
    class: Monolog\Handler\StreamHandler
    arguments: ['php://stderr', 10, 'monolog.level.debug']

This will spit out Drupal logs so that sumologic can get them

in settings.php
$settings['container_yamls'][] = 'sites/default/monolog.services.yml';

I think it would be nice if every env used monolog by default and for lando maybe add something similar to
Vantaa projects lando devel-enable that would enable modules that help with local development and debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant