02 Jul 2020 15:48:41 UTC
- Distribution: Log-Any-Adapter-Sentry-Raven
- Module version: v0.0.5
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- KwaliteeBus factor: 1
- License: artistic_2
- Activity24 month
- Download (12.83KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionGSG Grant Street Groupand 1 contributors
- Grant Street Group
Log::Any::Adapter::Sentry::Raven - Log::Any::Adapter for Sentry::Raven
When logging, it does its best to provide a Devel::StackTrace to identify your message. To accomplish this, it uses Devel::StackTrace::Extract to pull a trace from your message (if you pass multiple message arguments, it won't attempt this). Failing that, it will append a new
It takes two arguments:
- sentry (REQUIRED)
An instantiated Sentry::Raven object. Note that if you set any sentry-specific context directly through the sentry object, it will be picked up here eg.
$sentry->add_context( Sentry::Raven->request_context($url, %p) )
- log_level (OPTIONAL)
The minimum log_level to log. Defaults to
Any "Log context data" in Log::Any will be sent to Sentry as tags.
use Log::Any::Adapter; Log::Any::Adapter->set('Sentry::Raven', sentry => Sentry::Raven->new( sentry_dsn => $dsn, environment => 'production', ... ) );
Grant Street Group <firstname.lastname@example.org>
This software is Copyright (c) 2019 - 2020 by Grant Street Group.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
Module Install Instructions
To install Log::Any::Adapter::Sentry::Raven, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Log::Any::Adapter::Sentry::Raven
For more information on module installation, please visit the detailed CPAN module installation guide.