logger

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

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

Go to latest
Published: Oct 23, 2016 License: MIT Imports: 3 Imported by: 2

README

logger

Simple stdout logger that is enabled with passing enable flag. It's used in my other libs for debugging purposes only, not for full logging

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger func(enabled bool, format string, args ...interface{})

Simple Logger

func Debug

func Debug(name string) Logger

Debug returns debug logger with given name

func Error

func Error(name string) Logger

Error returns debug logger with given name

func Info

func Info(name string) Logger

Info returns debug logger with given name

func Warning

func Warning(name string) Logger

Warning returns debug logger with given name

Jump to

Keyboard shortcuts

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