mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
Fix README example on how to set a formatter (#35)
This commit is contained in:
parent
a38f57ac5c
commit
3828b50b51
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ If you prefer some other format I strongly encourage you to do pull request with
|
||||||
You can change the formatter like so
|
You can change the formatter like so
|
||||||
```ruby
|
```ruby
|
||||||
class MyAPI < Grape::API
|
class MyAPI < Grape::API
|
||||||
use GrapeLogging::Middleware::RequestLogger, logger: logger, format: MyFormatter.new
|
use GrapeLogging::Middleware::RequestLogger, logger: logger, formatter: MyFormatter.new
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue