cloud_logging

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer implements the logger.EntryWriter interface

func NewWriter

func NewWriter(log *logging.Logger, projectID string) *Writer

NewWriter return a new cloud logging logger.EntryWriter. See cloud.google.com/go/logging.NewClient on how to create a new logging.Logger.

func (*Writer) WriteEntry

func (w *Writer) WriteEntry(entry log.Entry)

WriteEntry implements the logger.EntryWriter interface

Jump to

Keyboard shortcuts

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