rlog

package
v2.0.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LogKeyConsumerGroup    = "consumerGroup"
	LogKeyTopic            = "topic"
	LogKeyMessageQueue     = "MessageQueue"
	LogKeyUnderlayError    = "underlayError"
	LogKeyBroker           = "broker"
	LogKeyValueChangedFrom = "changedFrom"
	LogKeyValueChangedTo   = "changeTo"
	LogKeyPullRequest      = "PullRequest"
)

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, fields map[string]interface{})

func Error

func Error(msg string, fields map[string]interface{})

func Fatal

func Fatal(msg string, fields map[string]interface{})

func Info

func Info(msg string, fields map[string]interface{})

func SetLogger

func SetLogger(logger Logger)

SetLogger use specified logger user customized, in general, we suggest user to replace the default logger with specified

func Warning added in v1.0.1

func Warning(msg string, fields map[string]interface{})

Types

type Logger

type Logger interface {
	Debug(msg string, fields map[string]interface{})
	Info(msg string, fields map[string]interface{})
	Warning(msg string, fields map[string]interface{})
	Error(msg string, fields map[string]interface{})
	Fatal(msg string, fields map[string]interface{})
}

Jump to

Keyboard shortcuts

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