logging

package
v0.59.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package logging provides a logger that logs fx events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FxLoggingOption

func FxLoggingOption() fx.Option

FxLoggingOption returns an fx.Option that provides a logger that logs fx events. If fxEventLogger is provided, it will be used, otherwise nothing is logged. Typically, this logs fx events when log_level is debug or above.

func NewFxEventLoggerOption

func NewFxEventLoggerOption[T Logger]() fx.Option

NewFxEventLoggerOption returns an fx option that provides a fxEventLogger. Generic is used in order to not depends on the logger package.

Types

type Logger

type Logger interface {
	Debug(v ...interface{})
}

Logger is a logger that logs fx events.

Jump to

Keyboard shortcuts

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