golog

package module
v0.0.0-...-1fe0e5a Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MPL-2.0 Imports: 1 Imported by: 6

README

golog

Generic wrapper around logging

Documentation

Index

Constants

View Source
const (
	LEVEL_INFO  = 0
	LEVEL_ERROR = 1
	LEVEL_DEBUG = 2
)

Variables

This section is empty.

Functions

func Add

func Add(l Logger)

func Debug

func Debug(data ...interface{})

func Debugw

func Debugw(message string, data ...interface{})

func Error

func Error(data ...interface{})

func Errorw

func Errorw(message string, data ...interface{})

func Finish

func Finish() error

func Info

func Info(data ...interface{})

func Infow

func Infow(message string, data ...interface{})

func Init

func Init() error

func Logw

func Logw(level int, message string, data ...interface{})

Types

type Logger

type Logger interface {
	Init() error
	Finish() error
	Log(level int, data ...interface{})
	Logw(level int, message string, data ...interface{})
	Info(data ...interface{})
	Infow(message string, data ...interface{})
	Error(data ...interface{})
	Errorw(message string, data ...interface{})
	Debug(data ...interface{})
	Debugw(message string, data ...interface{})
}

func StdOut

func StdOut(level int) Logger

Jump to

Keyboard shortcuts

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