https://github.com/adriankumpf/req_logger
Req Logger plugin
https://github.com/adriankumpf/req_logger
elixir
Last synced: 4 months ago
JSON representation
Req Logger plugin
- Host: GitHub
- URL: https://github.com/adriankumpf/req_logger
- Owner: adriankumpf
- Created: 2023-09-16T17:09:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-03T21:11:51.000Z (over 1 year ago)
- Last Synced: 2025-10-26T21:28:22.571Z (8 months ago)
- Topics: elixir
- Language: Elixir
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReqLogger
[Req](https://github.com/wojtekmach/req) Logger plugin.
## Installation
```elixir
def deps do
[
{:req_logger, "~> 0.1.0", github: "adriankumpf/req_logger"}
]
end
```
## Usage
```elixir
Mix.install([
{:req, "~> 0.4.3"},
{:req_logger, "~> 0.1.0", github: "adriankumpf/req_logger"}
])
req =
Req.new()
|> ReqLogger.attach()
Req.get!(req, url: "https://httpbin.org/status/201?a=1")
# [info] GET https://httpbin.org/status/201 -> 201
```