stackdriver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package stackdriver implements logging using Stackdriver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger is an implementation of a logs.Logger that sends logs to StackDriver.

func Create

func Create(localPath string) (*Logger, error)

Create creates a logger.

func (*Logger) Errorf

func (l *Logger) Errorf(fmt string, v ...interface{})

Errorf logs an error entry.

func (*Logger) Logf

func (l *Logger) Logf(fmt string, v ...interface{})

Logf logs an entry.

func (*Logger) Panicf

func (l *Logger) Panicf(fmt string, v ...interface{})

Panicf logs an error entry and panics.

func (*Logger) Warnf

func (l *Logger) Warnf(fmt string, v ...interface{})

Warnf logs an warning entry.

type Payload

type Payload struct {
	Message     string `json:"message"`
	BotName     string `json:"bot_name"`
	TaskPayload string `json:"task_payload"`
}

Payload represents the log payload that we send.

Jump to

Keyboard shortcuts

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