logit

package
v0.0.0-...-51d629d Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2016 License: BSD-3-Clause, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverGroup = "logging"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogitDriver

type LogitDriver interface {
	Open() LogitDriver
	Write(level int, logval ...interface{})
	Close()

	Id() string
	ShortHelp() string
	LongHelp() string
}

The interface gives the set of methods that an encryption driver must implement.

func GetDefaultDriver

func GetDefaultDriver() LogitDriver

This will panic if no drivers have been registered

func GetDriver

func GetDriver(name string) LogitDriver

This will panic if no drivers have been registered

func SetDefault

func SetDefault(name string) LogitDriver

Jump to

Keyboard shortcuts

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