standardoutputlogger

package
v1.0.0-bc8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StandardOutputLogger

type StandardOutputLogger struct {
	*loggingdecorator.ColoringScheme
	// contains filtered or unexported fields
}

StandardOutputLogger is the implementation of standard output logging

func New

func New() *StandardOutputLogger

New properly creates a new standard output logger initializing its internal state with default values

func (StandardOutputLogger) Log

func (logger StandardOutputLogger) Log(msg logging.LogMessage) error

Log writes the given log message to the standard output using the logger defined format

func (*StandardOutputLogger) WithColoringScheme

func (logger *StandardOutputLogger) WithColoringScheme(scheme *loggingdecorator.ColoringScheme) *StandardOutputLogger

WithColoringScheme sets the coloring scheme and returns the logger itself

func (*StandardOutputLogger) WithFormat

func (logger *StandardOutputLogger) WithFormat(format string) *StandardOutputLogger

WithFormat sets the logger format and returns the logger itself

Jump to

Keyboard shortcuts

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