gstrlog

package
v0.0.0-...-04777cf Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringLogger

type StringLogger interface {
	filter.FilterLogger
	GetStringLogs() []string
	AppendString(str string)
	AppendStringErr(str string, err error)
}

func New

func New(filterOpts []filter.FilterOption, logOpts ...log.LogOption) (StringLogger, error)

New creates a new instance of the StringLogger interface, which is a logger implementation that logs messages to an array and allows retrieving the logged messages.

Jump to

Keyboard shortcuts

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