log

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debugf(msg string, args ...interface{})
	Infof(msg string, args ...interface{})
	Warnf(msg string, args ...interface{})
	Errorf(msg string, args ...interface{})
}

Logger is responsible for providing logging facilities to bot instance.

type NoOpLogger

type NoOpLogger struct{}

NoOpLogger implements a Logger that simply ignores all the log entries.

func (NoOpLogger) Debugf

func (n NoOpLogger) Debugf(string, ...interface{})

func (NoOpLogger) Errorf

func (n NoOpLogger) Errorf(string, ...interface{})

func (NoOpLogger) Infof

func (n NoOpLogger) Infof(string, ...interface{})

func (NoOpLogger) Warnf

func (n NoOpLogger) Warnf(string, ...interface{})

type StdLogger

type StdLogger struct{}

StdLogger implements the Logger using standard library log package.

func (StdLogger) Debugf

func (s StdLogger) Debugf(msg string, args ...interface{})

func (StdLogger) Errorf

func (s StdLogger) Errorf(msg string, args ...interface{})

func (StdLogger) Infof

func (s StdLogger) Infof(msg string, args ...interface{})

func (StdLogger) Warnf

func (s StdLogger) Warnf(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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