logger

package
v0.0.0-...-280af2a Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: MIT Imports: 0 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, args ...interface{})

Debugf writes a debug message to the standard logger.

func Noticef

func Noticef(format string, args ...interface{})

Noticef writes a notice message to the standard logger.

func Printf

func Printf(format string, args ...interface{})

Printf writes a default message to the standard logger.

func SetLogger

func SetLogger(logger Logger)

SetLogger sets the standard logger.

func Verbosef

func Verbosef(format string, args ...interface{})

Verbosef writes a verbose message to the standard logger.

func Warningf

func Warningf(format string, args ...interface{})

Warningf writes a warning message to the standard logger.

Types

type Logger

type Logger interface {

	// Debugf writes a debug message.
	Debugf(string, ...interface{})

	// Verbosef writes a verbose message.
	Verbosef(string, ...interface{})

	// Noticef writes a notice message.
	Noticef(string, ...interface{})

	// Warningf writes a warning message.
	Warningf(string, ...interface{})

	// Printf writes a default message.
	Printf(string, ...interface{})
}

Logger represents a logger.

Jump to

Keyboard shortcuts

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