Documentation ¶
Overview ¶
Package logger provides wrapper around go-home logger implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsoleLogger ¶
func NewConsoleLogger() common.ILoggerProvider
NewConsoleLogger constructs a new console worker.
func NewLoggerProvider ¶
func NewLoggerProvider(ctor *ConstructLogger) (common.ILoggerProvider, error)
NewLoggerProvider constructs a new logger.
func NewPluginLogger ¶
func NewPluginLogger(ctor *ConstructPluginLogger) common.IPluginLoggerProvider
NewPluginLogger constructs a new plugin logger. This is another level of abstraction which adds system type and provider name to the actual logger. This logger should be passed to actual plugin.
Types ¶
type ConstructLogger ¶
type ConstructLogger struct { LoggerType string Loader providers.IPluginLoaderProvider RawConfig []byte NodeID string Secret common.ISecretProvider SkipLevel int }
ConstructLogger has data required for a new logger.
type ConstructPluginLogger ¶
type ConstructPluginLogger struct { SystemLogger common.ILoggerProvider System string Provider string ExtraFields map[string]string }
ConstructPluginLogger has data required for a new plugin logger.
Click to show internal directories.
Click to hide internal directories.