//
pkg.gl
Category
github.com/Franco-Poveda/logrus-splunk-hook
module
package
0.0.0-20210301113711-8b873cbec059
Repository:
https://github.com/franco-poveda/logrus-splunk-hook.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
0
Files
152 SLOC
#
README
Splunk Hook for Logrus
Splunk hook for logrus
Install
go get github.com/Franco-Poveda/logrus-splunk-hook
#
Functions
NewClient
NewClient creates a new client to Splunk.
NewHook
NewHook creates new hook client - splunk client instance (use NewClient) level - log level.
#
Structs
Client
Client manages communication with Splunk's HTTP Event Collector.
Event
Event represents the log event object that is sent to Splunk when Client.Log is called.
Hook
Hook is a logrus hook for splunk.