logs

package
v0.0.0-...-1676a5e Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogClient

type LogClient struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewClient

func NewClient(googleProjectName string) *LogClient

NewClient creates a new logging client

func (*LogClient) NewLogger

func (lc *LogClient) NewLogger(silent bool, logFuncNames ...string) *Logger

NewLogger creates a new logger based on the input name

type Logger

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

func (*Logger) Close

func (lg *Logger) Close() error

func (*Logger) Debug

func (lg *Logger) Debug(msg interface{})

Debug creates a debug log

func (*Logger) DebugJSON

func (lg *Logger) DebugJSON(i interface{})

DebugJSON creates a debug log in JSON format

func (*Logger) Debugf

func (lg *Logger) Debugf(s string, args ...interface{})

Debugf creates a debug log with formatting

func (*Logger) Error

func (lg *Logger) Error(err error) bool

Error creates an error log

func (*Logger) ErrorJSON

func (lg *Logger) ErrorJSON(i interface{})

ErrorJSON creates an error log in JSON format

func (*Logger) Fatal

func (lg *Logger) Fatal(msg interface{})

Fatal creates a critical log

func (*Logger) Log

func (lg *Logger) Log(msg interface{}, severity logging.Severity)

Log creates and executes a logging entry

func (*Logger) NewError

func (lg *Logger) NewError(msg string) error

NewError creates an error log

func (*Logger) NewErrorf

func (lg *Logger) NewErrorf(s string, args ...interface{}) error

NewErrorf creates an error log with formatting

func (*Logger) Panic

func (lg *Logger) Panic(msg interface{})

Panic creates a critical log

func (*Logger) Reflect

func (lg *Logger) Reflect(e interface{})

Reflect type assertion fail log

Jump to

Keyboard shortcuts

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