cuvva_log_sentry 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/cuvva_log_sentry.rb +12 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 4cd6603c59bcb79dcb56bea31e71aea8331dad3c
|
|
4
|
+
data.tar.gz: aa98a9ab2b0c0fcb164c58d2533919746dfb8c96
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 37d94bb4aea409752a43285ab56e2cb921eb8627c35f1be16458291f2d69b1fe16ccbfb1cb3f06fde883c596f50e8083e905b00582de419a732793a2c16bc2b8
|
|
7
|
+
data.tar.gz: 8d0c7164c2f404ed90ca0fc0329fef2d4871bd636ab90ce52dd24a8ff8a292816d8ed98019b797fc0f11caf0170007b411290c9d6d8c8063f297cd57b12677cc
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
require 'cuvva_log'
|
|
2
|
+
|
|
3
|
+
class SentryHandler < LogHandler
|
|
4
|
+
def initialize(sentry)
|
|
5
|
+
@sentry_client = sentry
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def handle(level, error)
|
|
9
|
+
level = :warning if level == :warn
|
|
10
|
+
@sentry_client.capture_exception(error, level: level, extra: { })
|
|
11
|
+
end
|
|
12
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cuvva_log_sentry
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jack Fransham
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2015-09-10 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description:
|
|
14
|
+
email: jack.fransham@cuvva.co
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/cuvva_log_sentry.rb
|
|
20
|
+
homepage: https://github.com/cuvva/cuvva-log-ruby
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
23
|
+
metadata: {}
|
|
24
|
+
post_install_message:
|
|
25
|
+
rdoc_options: []
|
|
26
|
+
require_paths:
|
|
27
|
+
- lib
|
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
requirements: []
|
|
39
|
+
rubyforge_project:
|
|
40
|
+
rubygems_version: 2.4.8
|
|
41
|
+
signing_key:
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: Sentry integration for the ruby version of cuvva-log.
|
|
44
|
+
test_files: []
|