Discover Packages
github.com/gordonmleigh/byolog
package
module
Version:
v0.0.0-...-bdfbc4a
Opens a new window with list of versions in this module.
Published: Apr 10, 2018
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Bring Your Own Log (BYOLOG)
This package aims to provide a useful abstraction over various logging libraries.
Godoc
https://godoc.org/github.com/gordonmleigh/byolog
Why?
Logging should be simple
A package dependency shouldn't force you to use a certain logging library
The external dependencies of a given library should be replaceable. A package depending on byolog.Logger
can use any logging library that an implementation has been written for (see output ).
What loggers can I use?
See output/ folder .
Contributions
PRs welcome for broader output support.
Expand ▾
Collapse ▴
Documentation
¶
type Field struct {
Name string
Value interface{}
}
Field represents a field for structured logging.
NewField creates a new field.
Logger represents any structured logger.
Nop creates a logger which satisfies the interface and does nothing.
Source Files
¶
Directories
¶
output
Click to show internal directories.
Click to hide internal directories.