log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package log defines type-safe fields that can be attached to log messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field = zapcore.Field

Field is an alias for zapcore.Field which are fields used for logging

func Bool

func Bool(key string, val bool) Field

Bool creates a bool log field

func Duration

func Duration(key string, val time.Duration) Field

Duration creates a duration log field

func Error

func Error(err error) Field

Error creates an error log field

func Float

func Float(key string, val float64) Field

Float creates a float log field

func Int

func Int(key string, val int) Field

Int creates an int log field

func String

func String(key string, val string) Field

String creates a string log field

func Time

func Time(key string, val time.Time) Field

Time creates a time log field

Jump to

Keyboard shortcuts

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