class SemanticLogger::Appender::SentryRuby
def initialize(level: :error, **args, &block)
Name of this application to appear in log messages.
application: [String]
Default: SemanticLogger.host
Name of this host to appear in log messages.
host: [String]
The Proc must return true or false.
Proc: Only include log messages where the supplied Proc returns true
regular expression. All other messages will be ignored.
RegExp: Only include log messages where the class name matches the supplied.
filter: [Regexp|Proc]
Default: Use the built-in formatter (See: #call)
the output from this appender
An instance of a class that implements #call, or a Proc to be used to format
formatter: [Object|Proc|Symbol|Hash]
Default: :error
Override the log level for this appender.
level: [:trace | :debug | :info | :warn | :error | :fatal]
Parameters
Create Appender
def initialize(level: :error, **args, &block) # Replace the Sentry Ruby logger so that we can identify its log # messages and not forward them to Sentry ::Sentry.init { |config| config.logger = SemanticLogger[::Sentry] } unless ::Sentry.initialized? super end