logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteLog

func WriteLog(logObject Log)

WriteLog is using to write log to stdout

Types

type Level

type Level int

Level is using to categorize level

const (
	//TRACE is using to categorize the log as Trace
	TRACE Level = iota
	//DEBUG is using to categorize the log as Debug
	DEBUG
	//INFO is using to categorize the log as Info
	INFO
	//WARN is using to categorize the log as Warn
	WARN
	//ERROR is using to categorize the log as Error
	ERROR
	//FATAL is using to categorize the log as Fatal
	FATAL
)

func (Level) String

func (l Level) String() string

type Log

type Log struct {
	Level   Level
	Message string
	Rq      *fasthttp.RequestCtx
}

Log is using to create log object

Jump to

Keyboard shortcuts

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