logs

package
v0.0.0-...-3a6b306 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 11 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

creates a new logging client

func (*LogClient) NewLogger

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

creates a new logger based on the input name

type Logger

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

func (*Logger) Debug

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

Debug log

func (*Logger) DebugJSON

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

debug json output log

func (*Logger) Debugf

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

Debug log with formatting

func (*Logger) Error

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

error log

func (*Logger) ErrorJSON

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

error json output log

func (*Logger) Fatal

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

critical log

func (*Logger) Flush

func (lg *Logger) Flush()

func (*Logger) Log

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

creates and executes a logging entry

func (*Logger) NewError

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

Error log

func (*Logger) NewErrorf

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

Error log with formatting

func (*Logger) Panic

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

critical log

func (*Logger) Reflect

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

type assertion fail log

Jump to

Keyboard shortcuts

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