multifield

package
v0.0.0-...-40c2f70 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

type Fields map[string]interface{}

func (*Fields) String

func (f *Fields) String() string

type Message

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

func NewMessage

func NewMessage(level level.LogLevel, msg string, emitters []emitter.Emitter) *Message

func (*Message) FieldFloat32

func (m *Message) FieldFloat32(key string, field float32) message.Message

func (*Message) FieldFloat64

func (m *Message) FieldFloat64(key string, field float64) message.Message

func (*Message) FieldInt

func (m *Message) FieldInt(key string, field int) message.Message

func (*Message) FieldString

func (m *Message) FieldString(key string, field string) message.Message

func (*Message) Fields

func (m *Message) Fields(mapOfFields map[string]interface{}) message.Message

func (*Message) String

func (m *Message) String() string

func (*Message) Tag

func (m *Message) Tag(tag string) message.Message

func (*Message) Tags

func (m *Message) Tags(tags []string) message.Message

func (*Message) Write

func (m *Message) Write() (err error)

type Tags

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

func NewTags

func NewTags() *Tags

func (*Tags) Append

func (t *Tags) Append(tags []string)

func (*Tags) AppendOne

func (t *Tags) AppendOne(tag string)

func (*Tags) IsEmpty

func (t *Tags) IsEmpty() bool

func (*Tags) LongestTagSize

func (t *Tags) LongestTagSize() int

func (*Tags) String

func (t *Tags) String() string

String returns all of the tags in a format [%s] [%s] ... If no tags present returns empty string

Jump to

Keyboard shortcuts

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