log

package
v0.0.0-...-3c02852 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TOPIC for setting topic of log
	TOPIC = "scaffold-service-log"
	// LogTag default log tag
	LogTag = "scaffold-service"

	// InfoLevel log
	InfoLevel = logrus.InfoLevel

	// DebugLevel log
	DebugLevel = logrus.DebugLevel

	// ErrorLevel log
	ErrorLevel = logrus.ErrorLevel

	// FatalLevel log
	FatalLevel = logrus.FatalLevel

	// PanicLevel log
	PanicLevel = logrus.PanicLevel
)

Variables

This section is empty.

Functions

func Context

func Context(c string, s string) *logrus.Entry

Context function for logging the context of echo c string context s string scope

func Log

func Log(level logrus.Level, message string, context string, scope string)

Log function for returning entry type level logrus.Level message string message of log context string context of log scope string scope of log

Types

This section is empty.

Jump to

Keyboard shortcuts

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