log

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DEFAULT severity = iota
	DEBUG
	INFO
	NOTICE
	WARNING
	ERROR
	CRITICAL
	ALERT
	EMERGENCY
)

GCP log-severity levels, see https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	KitLogger kitlog.Logger
}

func New

func New() Logger

func With

func With(logger Logger, keyvals ...interface{}) Logger

With returns a new logger, proxied call to kitlog.With

func (*Logger) Alert

func (l *Logger) Alert(message string, keyvals ...interface{}) error

func (*Logger) Critical

func (l *Logger) Critical(message string, keyvals ...interface{}) error

func (*Logger) Debug

func (l *Logger) Debug(message string, keyvals ...interface{}) error

func (*Logger) Emergency

func (l *Logger) Emergency(message string, keyvals ...interface{}) error

func (*Logger) Error

func (l *Logger) Error(message string, keyvals ...interface{}) error

func (*Logger) Info

func (l *Logger) Info(message string, keyvals ...interface{}) error

func (*Logger) Log

func (l *Logger) Log(keyvals ...interface{}) error

Proxy Log calls or else everything which uses the go-kit logger will break. By default all logs which use this method are logged in INFO

func (*Logger) Notice

func (l *Logger) Notice(message string, keyvals ...interface{}) error

func (*Logger) Warning

func (l *Logger) Warning(message string, keyvals ...interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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