subscriber

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 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 Logger

type Logger struct {
	zerolog.Logger
	// contains filtered or unexported fields
}

Logger is wrapper around the zerolog.Logger with the ability to handle messages from hub.Subscription

func NewLogger

func NewLogger(w io.Writer, sub hub.Subscription, development bool) *Logger

NewLogger create an Logger.

func (*Logger) Do

func (l *Logger) Do()

Do will start consuming messages from the subscriber and stop when the Subscription is closed

func (*Logger) Stop

func (l *Logger) Stop()

Stop close any open file and clean stuffs

Jump to

Keyboard shortcuts

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