logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Debug(message string, args ...interface{})
	Info(message string, args ...interface{})
	Warn(message string, args ...interface{})
	Error(message string, args ...interface{})
	LogError(err error)
	Fatal(message string, args ...interface{})
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(level string) *Logger

func (*Logger) Debug

func (l *Logger) Debug(message string, args ...interface{})

func (*Logger) Error

func (l *Logger) Error(message string, args ...interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(message string, args ...interface{})

func (*Logger) Info

func (l *Logger) Info(message string, args ...interface{})

func (*Logger) LogError

func (l *Logger) LogError(err error)

func (*Logger) Warn

func (l *Logger) Warn(message string, args ...interface{})

Jump to

Keyboard shortcuts

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