Sha256: 62e58075f9408a0cf5630b97ed561459a21235a4f3c3730f6e586aaca55a43bb

Contents?: true

Size: 916 Bytes

Versions: 7

Compression:

Stored size: 916 Bytes

Contents

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 ]


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
log_ranger-0.1.7 lib/log_ranger/log_ranger/USAGE
log_ranger-0.1.6 lib/log_ranger/log_ranger/USAGE
log_ranger-0.1.5 lib/log_ranger/log_ranger/USAGE
log_ranger-0.1.4 lib/log_ranger/log_ranger/USAGE
log_ranger-0.1.3 lib/log_ranger/log_ranger/USAGE
log_ranger-0.1.2 lib/log_ranger/log_ranger/USAGE
log_ranger-0.1.1 lib/log_ranger/log_ranger/USAGE