logger

package
v0.0.0-...-91ef8d6 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

type Fields map[string]interface{}

Fields type, used to pass to `WithFields`.

type LogResource

type LogResource struct {
	Timestamp time.Time
	Fields    Fields
}

LogResource : data to log

type LoggerTools

type LoggerTools struct {
	// contains filtered or unexported fields
}

LoggerTools : instance logger

var Default *LoggerTools

Default logger

func GetInstance

func GetInstance() *LoggerTools

GetInstance : singleton instance

func (*LoggerTools) Debug

func (that *LoggerTools) Debug(category string, fields Fields)

Debug : log error data

func (*LoggerTools) Error

func (that *LoggerTools) Error(category string, fields Fields)

Error : log error data

func (*LoggerTools) GetMiddleware

func (that *LoggerTools) GetMiddleware() echo.MiddlewareFunc

GetMiddleware : singleton instance

func (*LoggerTools) Info

func (that *LoggerTools) Info(category string, fields Fields)

Info : log info data

func (*LoggerTools) InfoLog

func (that *LoggerTools) InfoLog(category string, fields Fields)

Info : log info data

func (*LoggerTools) InfoSyslog

func (that *LoggerTools) InfoSyslog(m string) error

Log info

func (*LoggerTools) Warn

func (that *LoggerTools) Warn(category string, fields Fields)

Warn : log error data

Jump to

Keyboard shortcuts

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