Open piamo opened 7 years ago
Did you try setting this on your own API class that derives from Grape::API?
If that works then this is a feature request for a global logger setting for all API instances.
I have tried to set logger in my own API, and failed too.
in lib/grape/dsl/logger.rb, we can see:
Here is a problem, we can not set logger by Grape::API.logger = xxx, instead, we should call Grape::API.logger(xxx).
Seems something wrong with the attribute writter 'logger=' ?