logger

package
v0.0.0-...-0bfde0c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the connection to the Stackdriver server

func Critical

func Critical(topic, format string, args ...interface{})

Critical is like Debug, but on CRITICAL level

func Debug

func Debug(topic, format string, args ...interface{})

Debug formats its arguments according to the format, analogous to fmt.Printf, and records the text as a log message at Debug level.

func Info

func Info(topic, format string, args ...interface{})

Info is like Debug, but on INFO level

func PrintError

func PrintError(msg string, args ...interface{})

PrintError prints an error message to stderr

func Warn

func Warn(topic, format string, args ...interface{})

Warn is like Debug, but on WARN level

Types

type LogEntry

type LogEntry struct {
	Topic   string
	Message string
}

LogEntry is the custom logging entity

Jump to

Keyboard shortcuts

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