NAME

Sentry::Integration::MojoLog - Breadcrumbs and events from Mojo::Log

DESCRIPTION

Enabled by default. Records what is logged with Mojo::Log, e.g. by $app->log and $c->log of a Mojolicious application, as breadcrumbs and events, see Sentry::Integration::Logging. Levels map to Sentry's severities: trace and debug to debug, warn to warning, the others to the same name.

Mojo::Log has no logger names: the category is the package logging the message, e.g. My::App::Controller::Orders, or Mojolicious::Plugin::DefaultHelpers for what Mojolicious logs itself. The message is the parts joined with a space, as Mojolicious 9 does (8 puts them on lines of their own), without the context of "context" in Mojo::Log (e.g. the request id). Exceptions of requests, which Mojolicious::Plugin::SentrySDK captures and Mojolicious logs, are no second event.

Subclasses overriding the level methods (e.g. MojoX::Log::Log4perl, which logs through Log::Log4perl and so through Sentry::Integration::Log4perl) are not recorded here.

ATTRIBUTES

See "ATTRIBUTES" in Sentry::Integration::Logging.

METHODS

origin

The sentry.origin of its Sentry logs, auto.log.mojo_log.

install

See "install" in Sentry::Integration::Base.