sample_logger

package
v0.0.0-...-abdcf8d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*SampleLogger)

func LogTime

func LogTime(l string) Option

func RequestId

func RequestId(id string) Option

func RequestPath

func RequestPath(p string) Option

func UID

func UID(uid string) Option

type SampleLogger

type SampleLogger struct {
	Logger log15.Logger
	// contains filtered or unexported fields
}

func NewSampleLooger

func NewSampleLooger(ctx context.Context, opts ...Option) (*SampleLogger, *sample_error.SampleError)

func (*SampleLogger) Debug

func (p *SampleLogger) Debug(msg string)

func (*SampleLogger) Error

func (p *SampleLogger) Error(msg string)

func (*SampleLogger) Info

func (p *SampleLogger) Info(msg string)

func (*SampleLogger) SampleError

func (p *SampleLogger) SampleError(err *sample_error.SampleError)

func (*SampleLogger) Warn

func (p *SampleLogger) Warn(msg string)

Jump to

Keyboard shortcuts

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