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 ¶
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 ¶
Provides defines the output of the log component
func NewComponent ¶
NewComponent creates a log.Component using the provided config