streamlog

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Message

func Message(m stream.Message) zapcore.Field

Message returns a `zap.Field` object. It is a convenience method that allows you to easily add message contents to any log entries you create using Zap:

logger.Error(":boom:", streamlog.Message(msg))

For simplicity and consistency, the field key cannot be changed. It will always be set to `streamMessage`. If you want to change this field, you can implement your own marshaller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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