modifiers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemapLevelToSysLog

func RemapLevelToSysLog() sls.MessageModifier

func RenameMessageField

func RenameMessageField() sls.MessageModifier

Types

type Chain

type Chain []sls.MessageModifier

func (Chain) Modify

func (m Chain) Modify(msg sls.Message) sls.Message

type RemapLevel

type RemapLevel struct {
	LevelKey string
	Mapper   func(level string) string
}

func (*RemapLevel) Modify

func (m *RemapLevel) Modify(msg sls.Message) sls.Message

type RenameField

type RenameField struct {
	Before string
	After  string
}

func (*RenameField) Modify

func (m *RenameField) Modify(msg sls.Message) sls.Message

Jump to

Keyboard shortcuts

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