logs

package
v9.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 5 Imported by: 6

Documentation

Overview

Package logs implements functions to manipulate logs.

Logs created are taggable.

  logWithTags := logs.New("a log with tags").
      Tag("a", 42).
	     Tag("b", 21)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

Log is a implementation that supports tagging.

func New

func New(v string) Log

New returns a log with the given description that can be tagged.

func Newf

func Newf(format string, v ...interface{}) Log

Newf returns a log with the given formatted description that can be tagged.

func (Log) String

func (l Log) String() string

func (Log) Tag

func (l Log) Tag(k string, v interface{}) Log

Tag sets the named tag with the given value.

Jump to

Keyboard shortcuts

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