Description: Generate logger file Example: rails generate log_ranger This will create: - app/models/application_log.rb - config/mongoid.yml - config/initializers/log_ranger.rb - config/initializers/mongo.rb Additional Gem: Add this gem to your Gemfile and run `bundle install` gem "grape_logging" gem "mongoid" To use this logger as default logger, add following lines to your init.rb. insert_after Grape::Middleware::Formatter, GrapeLogging::Middleware::RequestLogger, logger: Logger.new(GrapeLogging::MultiIO.new($log_file, STDERR), formatter: CustomFormatter.new), include: [ GrapeLogging::Loggers::Response.new, GrapeLogging::Loggers::FilterParameters.new, GrapeLogging::Loggers::ClientEnv.new, GrapeLogging::Loggers::RequestHeaders.new ]