log

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyLogger

type DummyLogger struct{}

DummyLogger does not output anything

func (*DummyLogger) Errorf

func (*DummyLogger) Errorf(serivce, format string, v ...interface{})

Errorf does nothing.

func (*DummyLogger) Infof

func (*DummyLogger) Infof(service, format string, v ...interface{})

Infof does nothing.

func (*DummyLogger) Log

func (*DummyLogger) Log(...interface{})

Log does nothing.

type Logger

type Logger interface {
	// For AWS SDK's log
	Log(v ...interface{})

	// For wrapper's log
	Infof(service, format string, v ...interface{})
	Errorf(service, format string, v ...interface{})
}

Logger is logging interface.

var DefaultLogger Logger

DefaultLogger is default Logger.

type StdLogger

type StdLogger struct{}

StdLogger use standard log package.

func (*StdLogger) Errorf

func (*StdLogger) Errorf(service, format string, v ...interface{})

Errorf logging error information.

func (*StdLogger) Infof

func (*StdLogger) Infof(service, format string, v ...interface{})

Infof logging information.

func (*StdLogger) Log

func (*StdLogger) Log(v ...interface{})

Log logging the SDK's log.

Jump to

Keyboard shortcuts

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