config :logger, backends: [:console,Sentry.LoggerBackend]#print all messages in prodconfig :logger, :console, level: :debug #sentry capture all error messagesconfig :logger,Sentry.LoggerBackend,# Send messages like `Logger.error("error")` to Sentry capture_log_messages: true,# Also send warn messages like `Logger.warn("warning")` to Sentry# level: :warn,# Do not exclude exceptions from Plug/Cowboy excluded_domains: [],# Include metadata added with `Logger.metadata([foo_bar: "value"])` metadata: [:request_id]
Usage
Otherwise, we provide a simple way to capture exceptions manually: