slogkubeterminate

package
v0.0.0-...-0f74808 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package slogkubeterminate defines a slogger meant for use in Kubernetes containers to log the termination "reason" on log of slog.LevelFatal.

reference: https://kubernetes.io/docs/tasks/debug-application-cluster/determine-reason-pod-failure/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make() slog.Sink

Make a sink that populates the default kube termination log on calls to .Fatal().

func MakeCustom

func MakeCustom(log string) slog.Sink

Make a sink that populates the given termination log on calls to .Fatal().

Types

This section is empty.

Jump to

Keyboard shortcuts

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