logger

package
v1.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

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

func (*Console) Write

func (c *Console) Write(p []byte) (int, error)

type ConsoleInterface

type ConsoleInterface interface {
	Write(p []byte) (int, error)
}

func NewConsole

func NewConsole(writer zerolog.ConsoleWriter) ConsoleInterface

type Elasticsearch

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

func (*Elasticsearch) Write

func (e *Elasticsearch) Write(p []byte) (int, error)

type ElasticsearchInterface

type ElasticsearchInterface interface {
	Write(p []byte) (int, error)
}

func NewElasticsearch

func NewElasticsearch(client *elasticsearch.Client, index string) ElasticsearchInterface

type Logger

type Logger interface {
	SetLevel(level int) error
	Log() *zerolog.Logger
	Printf(format string, args ...any)
}

func New

func New(writer io.Writer) Logger

Jump to

Keyboard shortcuts

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