logging

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 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
	NewStaticLevelLogger(prefix string, flag int, l wlog.Level) *log.Logger
	NewStaticLevelWriter(l wlog.Level) io.Writer
}

Interface for creating new loggers

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) NewStaticLevelLogger

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

func (*Service) NewStaticLevelWriter added in v0.13.0

func (s *Service) NewStaticLevelWriter(l wlog.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