stackdriver

package
v0.0.0-...-882f8d2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlushFunc

type FlushFunc func() error

FlushFunc blocks and flushes the writer buffer. This should be called before the program exits to send all remaining entries to stackdriver

func NewStackdriveLevelWriter

func NewStackdriveLevelWriter(client *logging.Client, name string) (zerolog.LevelWriter, FlushFunc)

NewStackdriveLevelWriter returns a new writer using async logging from stackdriver. It also returns a flush function that should be called before the program exits to clear the internal buffers

Jump to

Keyboard shortcuts

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