prettylog

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package prettylog provides a slog handler that pretty prints logs in JSON format for development purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(w io.Writer, opts *slog.HandlerOptions) *logHandler

Prints pretty logs in both plain text and JSON formats depending on the number of attributes. To be used only for development.

Types

This section is empty.

Jump to

Keyboard shortcuts

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