logging

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	File  string `toml:"file"`
	Level string `toml:"level"`
}

func NewConfig

func NewConfig() Config

type Interface

type Interface interface {
	NewLogger(prefix string, flag int) *log.Logger
	NewRawLogger(prefix string, flag int) *log.Logger
	NewStaticLevelLogger(prefix string, flag int, l Level) *log.Logger
	NewStaticLevelWriter(l Level) io.Writer
}

Interface for creating new loggers

type Level added in v1.0.0

type Level wlog.Level
const (
	DEBUG Level
	INFO
	WARN
	ERROR
	OFF
)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(c Config, stdout, stderr io.Writer) *Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) NewLogger

func (s *Service) NewLogger(prefix string, flag int) *log.Logger

func (*Service) NewRawLogger added in v1.0.0

func (s *Service) NewRawLogger(prefix string, flag int) *log.Logger

func (*Service) NewStaticLevelLogger

func (s *Service) NewStaticLevelLogger(prefix string, flag int, l Level) *log.Logger

func (*Service) NewStaticLevelWriter added in v0.13.0

func (s *Service) NewStaticLevelWriter(l Level) io.Writer

func (*Service) Open

func (s *Service) Open() error

Jump to

Keyboard shortcuts

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