log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: GPL-3.0, GPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Overview

Package log contains custom logger wrapper.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, values ...interface{}) string

Debug logs debug message

func Error

func Error(message string, values ...interface{}) string

Error logs info message

func Info

func Info(message string, values ...interface{}) string

Info logs info message

func SetLoggerLevel

func SetLoggerLevel(level LoggerLevel)

SetLoggerLevel sets logger level.

func Warning

func Warning(message string, values ...interface{}) string

Warning logs info message

Types

type LoggerLevel

type LoggerLevel int

LoggerLevel logger level.

const (
	// LevelDebug logger level.
	LevelDebug LoggerLevel = iota
	// LevelInfo logger level.
	LevelInfo
	// LevelWarning logger level.
	LevelWarning
	// LevelError logger level.
	LevelError
)

Jump to

Keyboard shortcuts

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