tocloudwatch

package module
v0.0.0-...-5d420b6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogToCloudwatch

func LogToCloudwatch(config *Config) error

func Logger

func Logger(config *Config) (*slog.Logger, error)

Types

type Config

type Config struct {
	LogGroupName  string
	Client        *cloudwatchlogs.Client
	ErrorReporter func(error)
	Closer        func()
}

type ExtractTimeWriter

type ExtractTimeWriter struct {
	CWLogger *cwlogger.Logger
}

func (*ExtractTimeWriter) Write

func (w *ExtractTimeWriter) Write(p []byte) (n int, err error)

type Timestamp

type Timestamp struct {
	RFC3339Nano string `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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