log

package
v0.0.0-...-0356a80 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(event, message string)

Debug writes a debug message to the underlying logger

func Error

func Error(event string, err error)

Error writes a error message to the underlying logger

func Info

func Info(event, message string)

Info writes a info message to the underlying logger

func Warn

func Warn(event, message string)

Warn writes a warn message to the underlying logger

Types

type ILogger

type ILogger interface {
	Load()
}

ILogger interface the logger

type Logger

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

Logger is the implementation of the logger

func NewLogger

func NewLogger(config string) *Logger

NewLogger creates an instance of the Logger

func (*Logger) Load

func (l *Logger) Load()

Load loads the logger based in the config

Jump to

Keyboard shortcuts

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