logging

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 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
}

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

func (s *Service) Open() error

Jump to

Keyboard shortcuts

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