logwrapper

package
v0.0.0-...-702e412 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogFields

func LogFields(requestType, respondTime string) *log.Fields

func NewHook

func NewHook() (*kafkalogrus.KafkaLogrusHook, error)

Types

type Event

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

Event stores messages to log later, from our standard interface

type StandardLogger

type StandardLogger struct {
	*logrus.Logger
}

StandardLogger enforces specific log message formats

func NewLogger

func NewLogger() *StandardLogger

NewLogger initializes the standard logger

func (*StandardLogger) Success

func (l *StandardLogger) Success(requestType, respondTime string)

Jump to

Keyboard shortcuts

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