cloudrus

package module
v0.0.0-...-9209908 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook struct {
	// contains filtered or unexported fields
}

Hook represents one hook

func NewHook

func NewHook(groupName string, streamName string, batchFrequency time.Duration) (hook *Hook, err error)

NewHook creates a new hook with an AWS session taken from the environment

func NewHookWithSession

func NewHookWithSession(groupName string, streamName string, batchFrequency time.Duration, sess *session.Session) (hook *Hook, err error)

NewHookWithSession creates a new hook with a custom AWS session

func (*Hook) Fire

func (h *Hook) Fire(e *logrus.Entry) error

Fire adds an entry

func (*Hook) Levels

func (h *Hook) Levels() []logrus.Level

Levels returns all the levels

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL