Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinx/plogger
Piping Logger
https://github.com/pinx/plogger
Last synced: about 2 months ago
JSON representation
Piping Logger
- Host: GitHub
- URL: https://github.com/pinx/plogger
- Owner: pinx
- License: mit
- Created: 2016-06-27T10:45:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-09T17:31:36.000Z (about 6 years ago)
- Last Synced: 2024-10-21T00:36:16.113Z (2 months ago)
- Language: Elixir
- Size: 1.95 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plogger
Piping logger: logger functions that can inserted in a
piping sequence.It is inspired by the logging functions in Elm:
what you pass in, comes out. This makes it easy
to log intermediate results in a sequence of function
calls.```elixir
params
|> Plogger.debug("Start")
|> some_function()
|> Plogger.debug("Step 1")
|> other_function()
|> Plogger.debug("Step 2")
```The Plogger lines can be added and removed without
any further changes.## Installation
Add `plogger` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:plogger, "~> 0.1.0"}]
end
```