logger

package
v0.0.0-...-9ca37e5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 6 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 {
	// ErrorLogWriter returns the error log writer
	ErrorLogWriter() io.Writer

	// DebugLogWriter returns the debug log writer
	DebugLogWriter() io.Writer

	// Err prints an error log
	Err(v ...interface{})

	// Errf prints a formatted error log
	Errf(format string, v ...interface{})

	// Print prints a debug log
	Print(v ...interface{})

	// Printf prints a formatted debug log
	Printf(format string, v ...interface{})

	// Close closes the logger
	Close()
}

Logger defines the interface of an API server logger

func New

func New(conf *config.Config) (Logger, error)

New creates a new API server logger

Jump to

Keyboard shortcuts

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