gortinep_log

package
v0.0.0-...-f6ce3eb Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interceptor

func Interceptor(ops ...Option) gortinep.Interceptor

Interceptor returns a new interceptor for log.

Types

type Logger

type Logger interface {
	Printf(format string, args ...interface{})
	Print(v ...interface{})
}

Logger is the interface for log output

type Option

type Option func(*option)

Option configures gortinep_log

func WithLogger

func WithLogger(logger Logger) Option

WithLogger returns an option that sets Logger implementation.

Jump to

Keyboard shortcuts

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