custmsg

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Labeler

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

func NewLabeler

func NewLabeler() Labeler

func (Labeler) Emit

func (l Labeler) Emit(msg string) error

func (Labeler) Labels

func (l Labeler) Labels() map[string]string

func (Labeler) SendLogAsCustomMessage

func (l Labeler) SendLogAsCustomMessage(msg string) error

SendLogAsCustomMessage emits a BaseMessage With msg and labels as data. any key in labels that is not part of orderedLabelKeys will not be transmitted

func (Labeler) With

func (l Labeler) With(keyValues ...string) Labeler

With adds multiple key-value pairs to the CustomMessageLabeler for transmission With SendLogAsCustomMessage

func (Labeler) WithMapLabels

func (l Labeler) WithMapLabels(labels map[string]string) Labeler

WithMapLabels adds multiple key-value pairs to the CustomMessageLabeler for transmission With SendLogAsCustomMessage

Jump to

Keyboard shortcuts

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