logging

package
v0.0.0-...-04e9f4a Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	F *os.File

	DefaultPrefix      = ""
	DefaultCallerDepth = 2
)

Functions

func Debug

func Debug(v ...interface{})

Debug output logs at debug level

func Error

func Error(v ...interface{})

Error output logs at error level

func Fatal

func Fatal(v ...interface{})

Fatal output logs at fatal level

func Info

func Info(v ...interface{})

Info output logs at info level

func Setup

func Setup()

Setup initialize the log instance

func Warn

func Warn(v ...interface{})

Warn output logs at warn level

Types

type Level

type Level int
const (
	DEBUG Level = iota
	INFO
	WARNING
	ERROR
	FATAL
)

Jump to

Keyboard shortcuts

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