PLog (pre-release)
--- A lightweight and feature rich logger for Golang ---
Note: PLog is in pre-release and should not be used in production systems until v1 is released.
Features
- Speed - Your logger shouldn't slow your software down. PLog is fast, lightweight and has no dependencies.
- Multiple Outputs - No more multi-writers. PLog lets you write to as many outputs as you like. Each output can specify its own format and log level.
- Multiple Formats - Output your logs in a format that suits your needs.
Text
- A pretty printed plaintext string with color support.JSON
- Each log gets stored as a JSON object to allow parsing and filtering.CSV
- Comma-separated values. Compatible with spreadsheets.Custom
- Specify your own formatter function to style your log output however you like.
- Log Tags - Tag your logs to make them easier to search and filter.
- Custom Colors - Override the default colors for each logging level and tag.
- Log File Rotation - Plog can automatically generate and rotate log files. You can specify custom conditions for when these files should be rotated and how to name them using a built-in or custom sequencer.
- And more to come! See our Roadmap.
Documentation
Credits
- @fatih for the https://github.com/fatih/color package from which we borrowed some code to produce our colored logs (see
./color.go
).