log

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryL2ZapLogger

type EntryL2ZapLogger struct {
	Zap *zap.Logger
}

EntryL2ZapLogger - stackdriver kubernetes compatible logger

func NewEntry2ZapLogger

func NewEntry2ZapLogger(serviceName string) (*EntryL2ZapLogger, error)

NewEntry2ZapLogger - init

func (*EntryL2ZapLogger) Error

func (z *EntryL2ZapLogger) Error(keyvals ...interface{})

Error outputs errors to fluentd with stacktraces

func (*EntryL2ZapLogger) Info

func (z *EntryL2ZapLogger) Info(keyvals ...interface{})

Info - outputs info messages to fluentd enagled logging

func (*EntryL2ZapLogger) Warn

func (z *EntryL2ZapLogger) Warn(keyvals ...interface{})

Warn - outputs warnings to fluentd fluentd enagled logging

type Logger

type Logger interface {
	Info(keyvals ...interface{})
	Error(keyvals ...interface{})
	Warn(keyvals ...interface{})
}

Logger for tagged logging (uniified logging accross services and packages)

type ZapLogger

type ZapLogger struct {
	Zap *zap.Logger
	// contains filtered or unexported fields
}

ZapLogger - logger

func NewZapLogger

func NewZapLogger(logLevel string) (*ZapLogger, error)

NewZapLogger initiates zap logging with JSON encoding output for fluentd logging (stdout, stderr)

func (*ZapLogger) Error

func (z *ZapLogger) Error(keyvals ...interface{})

Error outputs errors to fluentd with stacktraces

func (*ZapLogger) Info

func (z *ZapLogger) Info(keyvals ...interface{})

Info - outputs info messages to fluentd enagled logging

func (*ZapLogger) Warn

func (z *ZapLogger) Warn(keyvals ...interface{})

Warn - outputs warnings to fluentd fluentd enagled logging

Jump to

Keyboard shortcuts

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