logging

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

func Debugf

func Debugf(msg string, v ...interface{})

func Error

func Error(msg string)

func Errorf

func Errorf(msg string, v ...interface{})

func Info

func Info(msg string)

func Infof

func Infof(msg string, v ...interface{})

func SetLogger

func SetLogger(l Logger)

func Trace

func Trace(msg string)

func Tracef

func Tracef(msg string, v ...interface{})

func Warn

func Warn(msg string)

func Warnf

func Warnf(msg string, v ...interface{})

Types

type Logger

type Logger interface {
	Error(string)
	Warn(string)
	Info(string)
	Debug(string)
	Trace(string)
}

Logger defines a logger interface with methods common to most logging libraries. A shim will be required for logging libraries which don't implement all / any of these methods

Jump to

Keyboard shortcuts

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