logimpl

package module
v0.79.0-devel Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 4 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package logimpl implements a component to handle logging internal to the agent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemporaryLoggerWithoutInit

func NewTemporaryLoggerWithoutInit() logdef.Component

NewTemporaryLoggerWithoutInit returns a logger component instance. It assumes the logger has already been initialized beforehand.

This function should be used when all these conditions are true: - You write or update code which uses a lot of logging. - You want the code to be components ready. - logger.Component cannot be injected.

It should not be used when: - You add few logging functions. - When the instance of logger.Component is reachable in less than 5 stack frames. - It doesn't make the migration to log.Component easier.

Types

type Provides

type Provides struct {
	Comp logdef.Component
}

Provides defines the output of the log component

func NewComponent

func NewComponent(deps Requires) (Provides, error)

NewComponent creates a log.Component using the provided config

type Requires

type Requires struct {
	Lc     compdef.Lifecycle
	Params logdef.Params
	Config config.Component
}

Requires declares the input types to the logger component constructor

Jump to

Keyboard shortcuts

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