logger

package
v0.0.0-...-673078a Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Run(*quitter.Quitter)
	Running() bool
	Info(string)
	Error(error) error
	SetSvcLogger(service.Logger)
}

type SvcLogger

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

func NewSvcLogger

func NewSvcLogger() *SvcLogger

func (*SvcLogger) Error

func (l *SvcLogger) Error(err error) error

Error logs an error and returns the same error

func (*SvcLogger) Info

func (l *SvcLogger) Info(msg string)

func (*SvcLogger) Run

func (l *SvcLogger) Run(quit *quitter.Quitter)

func (*SvcLogger) Running

func (l *SvcLogger) Running() bool

Running returns whether Logger is running

func (*SvcLogger) SetSvcLogger

func (l *SvcLogger) SetSvcLogger(logger service.Logger)

Jump to

Keyboard shortcuts

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