logging

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvokedFunction    = "invokedFunction"
	ExecutionID        = "executionId"
	Environment        = "environment"
	EnvironmentKey     = "ENVIRONMENT"
	AwsLambdaFnNameKey = "AWS_LAMBDA_FUNCTION_NAME"
)

Variables

View Source
var (
	LogLevelKey = "LOG_LEVEL"
)

Functions

func AddFields

func AddFields(ctx context.Context, f logrus.Fields) context.Context

func AppDetails

func AppDetails(commitID *string, env *string)

func ConfigureJSONFormatting

func ConfigureJSONFormatting(logLevelKey *string)

func ExecutionEnd

func ExecutionEnd(ctx context.Context)

func ExecutionStart

func ExecutionStart(ctx context.Context)

func NewLambdaInvocation

func NewLambdaInvocation(fnName *string, env *string) *logrus.Entry

func WithExecutionID

func WithExecutionID(ctx context.Context) context.Context

func WithExecutionIDLogStart

func WithExecutionIDLogStart(ctx context.Context) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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