cloudwatch

package
v1.0.0-dev.97 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) logrus.Formatter

New returns a new logrus formatter for CloudWatch.

Types

type Option

type Option func(formatter *cwlogsfmt.CloudWatchLogsFormatter)

Option represents a CloudWatch formatter option.

func WithDisableSorting

func WithDisableSorting(value bool) Option

WithDisableSorting sets formatter's disable sorting to value.

func WithPrefixFields

func WithPrefixFields(value []string) Option

WithPrefixFields sets formatter's prefix fields to value.

func WithQuoteEmptyFields

func WithQuoteEmptyFields(value bool) Option

WithQuoteEmptyFields sets formatter's quote empty fields to value.

Jump to

Keyboard shortcuts

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