zlog

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultZLogger is the default zerolog.Logger used by nproto packages.
	// If os.Stdout is a terminal then ConsoleWriter will be used for prettier output.
	// You can override this to whatever you want to log to.
	DefaultZLogger = zerolog.New(os.Stdout).
		Level(zerolog.InfoLevel).
		With().
		Timestamp().
		Caller().
		Logger()
)

Functions

func WrapMsgSubscriber added in v0.9.2

func WrapMsgSubscriber(logger *zerolog.Logger) nproto.MsgMiddleware

WrapMsgSubscriber adds a zerolog.Logger to MsgSubscriber's context.

func WrapRPCServer added in v0.9.2

func WrapRPCServer(logger *zerolog.Logger) nproto.RPCMiddleware

WrapRPCServer adds a zerolog.Logger to RPCServer's context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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