log

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRequestFields added in v0.6.0

func AddRequestFields(parent context.Context, req *dhcpv4.DHCPv4) context.Context

AddRequestFields returns a new context.Context that has the given request assigned

func GetLogger

func GetLogger(c *caddy.Controller, plg plugin.Handler) log.Interface

GetLogger returns a new logger for the given controller and plugin plg may be nil in which case the server instance level logger is returned

Types

type Logger

type Logger interface {
	// Debugf prints a debug message
	Debugf(msg string, args ...interface{})

	// Infof prints a info message
	Infof(msg string, args ...interface{})

	// Warnf prints a warning message
	Warnf(msg string, args ...interface{})

	// Errorf prints an error message
	Errorf(msg string, args ...interface{})
}

Logger is used by NextDHCP plugins to log important information

func With added in v0.6.0

func With(ctx context.Context, parent Logger) Logger

Jump to

Keyboard shortcuts

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