log

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 4 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// Info is used to log any kind of information.
	Info(string) error

	// Debug is used by the debugger when enabled.
	Debug(string) error

	// Error is used to log errors.
	Error(error) error
}

Logger represents the logger interface while hiding the implementation.

func NewLogger

func NewLogger(path string) Logger

NewLogger returns a new logger with all dependencies set up.

Jump to

Keyboard shortcuts

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