logging

package
v0.0.0-...-7c18459 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

L is the global instance of the logger

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(message string, args ...interface{})
	Info(message string, args ...interface{})
	Warn(message string, args ...interface{})
	Error(message string, args ...interface{})
}

Logger is our standard interface

type LoggerStdOut

type LoggerStdOut struct{}

LoggerStdOut logs to std out

func (LoggerStdOut) Debug

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

Debug logs messages at DEBUG level

func (LoggerStdOut) Error

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

Error logs messages at ERROR level

func (LoggerStdOut) Info

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

Info logs messages at INFO level

func (LoggerStdOut) Warn

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

Warn logs messages at WARN level

Jump to

Keyboard shortcuts

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