log

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 GetLogger

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

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

Jump to

Keyboard shortcuts

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