stack

package
v0.0.0-...-8fc2537 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Context context.Context
	Creds   []byte
}

func (*Config) CheckAndSetDefaults

func (c *Config) CheckAndSetDefaults() error

type Hook

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

func NewHook

func NewHook(cfg Config) (*Hook, error)

NewHook returns a new hook

func (*Hook) Fire

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

Fire is invoked by logrus and sends log to Stackdriver.

func (*Hook) Levels

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

Jump to

Keyboard shortcuts

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