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

Default Debug Logging #30

Open
dbrody opened this issue Dec 14, 2021 · 0 comments
Open

Default Debug Logging #30

dbrody opened this issue Dec 14, 2021 · 0 comments

Comments

@dbrody
Copy link
Contributor

dbrody commented Dec 14, 2021

Currently the default logging is set to debug in dev mode. This causes a LOT of logging output that can get cumbersome to develop with.

The best solution I have found is to do something like this:

config :logger,
  backends: [:console],
  compile_time_purge_matching: [
    [application: :playwright]
  ]

This requires recompiling the dependency: mix deps.compile playwright --force. This may also require any application that uses this to restart as well.

The issue here is there is no way to turn logging on for a portion of the use of playwright-elixir and then off.

I've seen FlexLogger but I dont want to add additional dependencies.

Any ideas?

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