sdk_log

package
v5.6.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Debugf(format string, args ...interface{})
	Warningf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

func NewNullLogger

func NewNullLogger() Logger

func NewSimpleLogger

func NewSimpleLogger() Logger

A logger which prints everything to log.Printf with the level as a prefix.

type NullLogger

type NullLogger struct{}

A logger which does nothing.

func (NullLogger) Debugf

func (NullLogger) Debugf(format string, args ...interface{})

func (NullLogger) Errorf

func (NullLogger) Errorf(format string, args ...interface{})

func (NullLogger) Infof

func (NullLogger) Infof(format string, args ...interface{})

func (NullLogger) Warningf

func (NullLogger) Warningf(format string, args ...interface{})

type SimpleLogger

type SimpleLogger struct{}

func (SimpleLogger) Debugf

func (SimpleLogger) Debugf(format string, args ...interface{})

func (SimpleLogger) Errorf

func (SimpleLogger) Errorf(format string, args ...interface{})

func (SimpleLogger) Infof

func (SimpleLogger) Infof(format string, args ...interface{})

func (SimpleLogger) Warningf

func (SimpleLogger) Warningf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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