log

package module
v0.0.0-...-cab566a Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 0 Imported by: 0

README

log

A basic Logger interface for reuse

Go Reference

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, keyvals ...interface{})
	Info(msg string, keyvals ...interface{})
	Error(msg string, keyvals ...interface{})
	With(keyvals ...interface{}) Logger
}

type NoOp

type NoOp struct{}

func (NoOp) Debug

func (l NoOp) Debug(msg string, keyvals ...interface{})

func (NoOp) Error

func (l NoOp) Error(msg string, keyvals ...interface{})

func (NoOp) Info

func (l NoOp) Info(msg string, keyvals ...interface{})

func (NoOp) With

func (l NoOp) With(keyvals ...interface{}) Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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