logging

package
v0.0.0-...-b8d1666 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 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 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
	INFO Level = iota
	WARNING
	//ERROR
	FATAL
)

Jump to

Keyboard shortcuts

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