mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +00:00
Merge branch 'master' of github.com:aserafin/grape_logging
Conflicts: README.md
This commit is contained in:
commit
f1827ea8ac
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -18,11 +18,11 @@ Or install it yourself as:
|
|||
|
||||
## Basic Usage
|
||||
|
||||
Include the middleware in your api
|
||||
|
||||
class MyAPI < Grape::API
|
||||
use GrapeLogging::Middleware::RequestLogger, logger: logger
|
||||
end
|
||||
In your api file (somewhere on the top)
|
||||
|
||||
require 'grape_logging'
|
||||
logger.formatter = GrapeLogging::Formatters::Default.new
|
||||
use GrapeLogging::Middleware::RequestLogger, { logger: logger }
|
||||
|
||||
## Features
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue