logr

package module
v0.0.0-...-1856138 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 License: MIT Imports: 8 Imported by: 0

README

logr

Run Instructions

  1. Deps are committed, but if there are issues with them glide install
  2. make to build examples, then cd into each folder to run them
  3. make test to run all tests
NOTE: the cli-service usage example is kind of a broker/pub-sub setup
  1. ./cli-service --mode=serve in one terminal tab to run the broker/log server
  2. ./cli-service --mode=write --priority=[1|2|3] --msg="This is a log message" in another terminal tab to write to logging system
  3. ./cli-service --mode=read in another terminal tab to read logs from the system
  4. Be sure to watch the server tab for fun colorful system event logs

Documentation

Index

Constants

View Source
const (
	// LowPriority ...
	LowPriority = config.LowPriority

	// MedPriority ...
	MedPriority = config.MedPriority

	// HighPriority ...
	HighPriority = config.HighPriority
)

Variables

This section is empty.

Functions

func InitWithOpts

func InitWithOpts(opts *config.Opts)

InitWithOpts ...

func NewGenericLogWriter

func NewGenericLogWriter() (*writers.GenericLogWriter, error)

NewGenericLogWriter ...

func NewHighPriorityLogWriter

func NewHighPriorityLogWriter() (*writers.HighPriorityLogWriter, error)

NewHighPriorityLogWriter ...

func NewLazyLogWriter

func NewLazyLogWriter(priority int) (*writers.LazyLogWriter, error)

NewLazyLogWriter ...

func NewLockedPriorityLogWriter

func NewLockedPriorityLogWriter(priority int) (*writers.LockedPriorityLogWriter, error)

NewLockedPriorityLogWriter ...

func NewLogReader

func NewLogReader() (*reader.LogReader, error)

NewLogReader ...

func Serve

func Serve()

Serve - starts a Logr broker [OPTIONAL]

Types

This section is empty.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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