logging

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package logging provides shared logging utilities for gridctl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiscardLogger

func NewDiscardLogger() *slog.Logger

NewDiscardLogger returns a logger that discards all output. This is useful as a default logger when no logging is configured.

Types

type DiscardHandler

type DiscardHandler struct{}

DiscardHandler is a slog.Handler that discards all log records. Use this to create a no-op logger: slog.New(logging.DiscardHandler{})

func (DiscardHandler) Enabled

func (DiscardHandler) Handle

func (DiscardHandler) WithAttrs

func (d DiscardHandler) WithAttrs([]slog.Attr) slog.Handler

func (DiscardHandler) WithGroup

func (d DiscardHandler) WithGroup(string) slog.Handler

Jump to

Keyboard shortcuts

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