diff --git a/.gitignore b/.gitignore index a1338d6..b9cedf9 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,9 @@ # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 .glide/ +glide.lock + +# IDE files +.idea/ + +vendor \ No newline at end of file diff --git a/core.go b/core.go index 0c92478..23b4d91 100644 --- a/core.go +++ b/core.go @@ -92,6 +92,10 @@ func (c *core) with(fs []zapcore.Field) *core { } } +func (c *core) GetSentryClient() *raven.Client { + return c.client +} + type core struct { client *raven.Client cfg *Configuration diff --git a/glide.yaml b/glide.yaml new file mode 100644 index 0000000..85bccb6 --- /dev/null +++ b/glide.yaml @@ -0,0 +1,7 @@ +package: github.com/TheZeroSlave/zapsentry +import: +- package: github.com/getsentry/raven-go +- package: go.uber.org/zap + version: v1.4.1 + subpackages: + - zapcore