logging

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	INFO
	WARN
	ERROR
	FATAL
)

Variables

This section is empty.

Functions

func Debug

func Debug(format string, args ...interface{})

func DefaultLogf

func DefaultLogf(level int, format string, args ...interface{})

func Error

func Error(format string, args ...interface{})

func Fatal

func Fatal(format string, args ...interface{})

func Info

func Info(format string, args ...interface{})

func SetLevel

func SetLevel(level int)

func Warn

func Warn(format string, args ...interface{})

Types

type LogFunc

type LogFunc func(level int, format string, args ...interface{})
var Log LogFunc = DefaultLogf

Source Files

  • logger.go

Jump to

Keyboard shortcuts

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