log

package
v2.0.0-...-443e6bf Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluggableLogger

type PluggableLogger struct {
	Log *simple.Logger
}

PluggableLogger

func (*PluggableLogger) Debug

func (c *PluggableLogger) Debug(msg string, val ...interface{})

Debug

func (*PluggableLogger) Error

func (c *PluggableLogger) Error(msg string, val ...interface{})

Error

func (*PluggableLogger) Info

func (c *PluggableLogger) Info(msg string, val ...interface{})

Info

func (*PluggableLogger) Level

func (c *PluggableLogger) Level(level string)

Level - ovveride log level

func (*PluggableLogger) Trace

func (c *PluggableLogger) Trace(msg string, val ...interface{})

Trace

func (*PluggableLogger) Warn

func (c *PluggableLogger) Warn(msg string, val ...interface{})

Warn

type PluggableLoggerInterface

type PluggableLoggerInterface interface {
	Error(msg string, val ...interface{})
	Info(msg string, val ...interface{})
	Debug(msg string, val ...interface{})
	Trace(msg string, val ...interface{})
	Warn(msg string, val ...interface{})
	Level(levele string)
}

PluggableLoggerInterface - allows us to use other logging systems as long as the interface implementation is adhered to

func New

New - returns a new PluggableLogger instance

Jump to

Keyboard shortcuts

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