logfmt

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logfmt provides functions encoding logger.Field using logfmt format, for example: "field=value".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteField

func WriteField(builder *strings.Builder, field logger.Field)

WriteField converts the field to logfmt format (key=value) and appends it to the builder.

func WriteFields

func WriteFields(builder *strings.Builder, fields []logger.Field)

WriteFields writes multiple fields separated with spaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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