logger

package
v0.0.0-...-8f3712b Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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