logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, format string, args ...interface{})

func Error

func Error(ctx context.Context, format string, args ...interface{})

func Info

func Info(ctx context.Context, format string, args ...interface{})

func SetLogger

func SetLogger(customLogger Logger)

Types

type DummyLogger

type DummyLogger struct{}

func (*DummyLogger) Debug

func (dl *DummyLogger) Debug(ctx context.Context, format string, args ...interface{})

func (*DummyLogger) Error

func (dl *DummyLogger) Error(ctx context.Context, format string, args ...interface{})

func (*DummyLogger) Info

func (dl *DummyLogger) Info(ctx context.Context, format string, args ...interface{})

type Logger

type Logger interface {
	Info(ctx context.Context, format string, args ...interface{})
	Debug(ctx context.Context, format string, args ...interface{})
	Error(ctx context.Context, format string, args ...interface{})
}

Logger logging interface for gobrick

Jump to

Keyboard shortcuts

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