logger

package
v0.0.0-...-5560990 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Level LogLevel
}

Log is

func NewLogger

func NewLogger(level LogLevel) *Log

NewLogger is logger constructor

func (*Log) Debug

func (l *Log) Debug(args ...interface{})

Debug is

func (*Log) Error

func (l *Log) Error(args ...interface{})

Error is

func (*Log) Info

func (l *Log) Info(args ...interface{})

Info is

func (*Log) Warn

func (l *Log) Warn(args ...interface{})

Warn is

type LogLevel

type LogLevel string

LogLevel is kind of Loglavel

const (
	// LogDebug is
	LogDebug LogLevel = "Debug"
	// LogInfo is
	LogInfo LogLevel = "Info"
	// LogSilent is
	LogSilent LogLevel = "Silent"
)

Jump to

Keyboard shortcuts

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