driver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleDriver

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

func NewConsoleDriver

func NewConsoleDriver(out io.Writer) *ConsoleDriver

func (*ConsoleDriver) Write

func (d *ConsoleDriver) Write(_ context.Context, _ scriba.Entry, formatted []byte) error

type OTelDriver

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

func NewOTelDriver

func NewOTelDriver(emitter OTelEmitter) *OTelDriver

func (*OTelDriver) Write

func (d *OTelDriver) Write(ctx context.Context, entry scriba.Entry, _ []byte) error

type OTelEmitter

type OTelEmitter interface {
	Emit(ctx context.Context, entry scriba.Entry) error
}

OTelEmitter deve ser implementado por quem integra com a lib OTEL real.

Jump to

Keyboard shortcuts

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