raw

package module
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 11 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package raw provides a middleware that logs raw events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) func(next lambda.Handler) lambda.Handler

New build a new raw event logging middleware, this uses zerolog to emit a log message for the input and output events.

Types

type Option

type Option func(opts *rawOptions)

Option assign settings to the zerolog middlware.

func Enabled added in v1.4.0

func Enabled(flag bool) Option

Enabled is a flag to toggle this middleware on or off. Defaults to true.

func Fields

func Fields(fields map[string]any) Option

Fields pass a map of attributes which are appended to all log messages emitted by this logger.

func Output

func Output(output io.Writer) Option

Output is a writer where logs in JSON format are written. Defaults to os.Stderr.

Jump to

Keyboard shortcuts

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