logging

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush() error

Flush any pending collected logs.

func Start

func Start(loggerName string, resource *resource.Resource, opts ...Option) error

Start log exporting.

func Stop

func Stop()

Stop log exporting.

Types

type Option

type Option func() error

Option is an option for log exporting.

func WithExportInterval

func WithExportInterval(v time.Duration) Option

WithExportInterval sets the batch interval for exporting logs.

func WithExporter

func WithExporter(v string) Option

WithExporter sets the logging exporter to use.

Jump to

Keyboard shortcuts

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