logx

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	// *Logger
	*log.Entry
}

Entry log entry

func (*Entry) Category

func (e *Entry) Category(name string) *Entry

Category setting svc name

func (*Entry) Component

func (e *Entry) Component(com string) *Entry

Component setting svc name

func (*Entry) SetReqInfo

func (e *Entry) SetReqInfo(req *restful.Request) *Entry

SetReqInfo setting svc name

type Logger

type Logger struct {
	*log.Logger
}

Logger custom logger

func New

func New() *Logger

New new logger

func StdLogger

func StdLogger() *Logger

StdLogger std logger

func (*Logger) Category

func (l *Logger) Category(name string) *Entry

Category setting svc name

func (*Logger) Component

func (l *Logger) Component(com string) *Entry

Component setting svc name

func (*Logger) Service

func (l *Logger) Service(svc string) *Entry

Service setting svc name

Jump to

Keyboard shortcuts

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