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: 5 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址