# README
sypl
sypl
provides a Simple Yet Powerful Logger built on top of the Golang sypl. A sypl logger can have many Output
s, and each Output
is responsible for writing to a specified destination. Each Output
can have multiple Processor
s, which run in isolation manipulating the log message. The order of execution is important, and is according to the registering (add) order. These features allow sypl
to fit into many different logging flows.
Install
$ go get github.com/saucelabs/sypl
Specific version
Example: $ go get github.com/saucelabs/[email protected]
Usage
See example_test.go
, and sypl_test.go
file.
Documentation
Run $ make doc
or check out online.
How it works
A picture worth thousand words.
Development
Check out CONTRIBUTION.
Release
- Update CHANGELOG accordingly.
- Once changes from MR are merged.
- Tag and release.
Roadmap
Check out CHANGELOG.
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
New is the Sypl factory.
NewDefault creates a logger that covers most of all needs: - Writes message to `stdout` @ the specified `maxLevel` - Writes error messages only to `stderr` - Default io.Writer level is `none`.
RedirectStdLog redirects output from the standard library's package-global logger to the supplied logger at level.Info.
RedirectStdLogAt redirects output from the standard library's package-global logger to the supplied logger at the specified level.
# Variables
No description provided by the author
# Structs
MessageToOutput defines a `Message` to printed at the specified `Level`, and to the specified `Output`.
Sypl logger definition.
# Interfaces
IBasePrinter specifies the foundation for other printers.
IBasicPrinter specifies the basic printers.
IConvenientPrinter specifies convenient printers.
ILeveledPrinter specifies the leveled printers.
IPrinters is all available printers.
ISypl specified what a Sypl logger does.