logging

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PLogger

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

PLogger implements the ProverbLogger interface and relies on http://github.com/rs/zerolog

func NewPLogger

func NewPLogger(service string, level logger.LogLevel) PLogger

NewPLogger returns a new PLogger.

func (PLogger) Proverb

func (l PLogger) Proverb(p string) ProverbLogger

Proverb instructs the logger to log the proverb.

type ProverbLogger

type ProverbLogger interface {
	logger.Logger
	Proverb(string) ProverbLogger
}

ProverbLogger defines the behavior of the logger. Exposes a function for each loggable field which maps to a LogKey. The functions invocations can be chained and terminated by one of the levelled function calls (Fatal, Error, Warn, Info).

Jump to

Keyboard shortcuts

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