silo

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 3

README

go-SiLo

GoDoc Go Report Card

SiLo (simple logger) is a very light weight logger for go. Use it if you need the same logger instance within multiple packages and don't want to use heavy solutions.

Why does that package exist at all? Because I use it in many different projects and don't want to write it everytime again. ;)

License

Apache License 2.0

Documentation

Index

Constants

View Source
const (
	DEBUG = 1 << iota
	INFO
	WARN
	ERROR
)

Variables

This section is empty.

Functions

func Get

func Get() *logger

func Init

func Init(o io.Writer, l int) *logger

func PrintConsole

func PrintConsole(m string)

PrintConsole attaches a console and prints to it.

Types

type Logger

type Logger interface {
	Debug()
	Info()
	Warn()
	Error()
}

Jump to

Keyboard shortcuts

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