-
Notifications
You must be signed in to change notification settings - Fork 6
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
Disable logtail integration by config.logtail.enabled = false
#10
Comments
Hi @mikz, it makes sense to follow conventional ways of configuration. Thanks for opening up the issue 🙌 I'd be a bit careful with disabling the Logtail Logger though, since it accepts an additional argument (for formatted data). Disabling it would result in For this reason, I would rather not promote a way to disable the logger via configuration. What do you think? You could reconfigure the logger with a different io_device (currently |
Interesting. I didn't know. That would be a serious problem. Since it is already out there, then I'd at least ensure the development environment is not half configured to use logtail. |
Thanks for sharing your thoughts. The easy way out of sending logs to Better Stack would be to set the environment variable |
+1 for this. I was surprised that installing the gem and not configuring anything immediately impacts the log format in development mode. |
Adding this gem removes stack-traces to the terminal output when running in my local environment.
|
Hi,
When logtail-rails is required, it will automatically be enabled and changes development log output.
That is fine, but it would be great if logtail could actually be disabled in the environment config like everything in Rails.
Right now it has to be disabled by
Logtail::Integrations::Rails.enabled = false
, which is unexpected, since it providesconfig.logtail
configuration object.I'm happy to make a PR that takes
config.logtail.enabled
as the global configuration in the Railtie and disables the integration.Looks like there are
config.integrations.{active_record,action_view,action_controller}
that could be configured, but still it would be nice to have one that manages them all.The text was updated successfully, but these errors were encountered: