Skip to content

Commit

Permalink
Update usage documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowens authored Sep 4, 2020
1 parent 0639618 commit c55b45d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion sinatra-contrib/lib/sinatra/quiet_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ module Sinatra
#
# == Usage
#
# You have to require the quiet_logger, set the setting
# === Classic Application
#
# You have to require the quiet_logger, set the prefixes
# and register the extension in your application.
#
# require 'sinatra'
# require 'sinatra/quiet_logger'
#
# set :quiet_logger_prefixes, %w(css js images fonts)
# register Sinatra::QuietLogger
#
# === Modular Application
#
# The same for modular application:
#
# require 'sinatra/base'
# require 'sinatra/quiet_logger'
#
Expand All @@ -18,6 +30,7 @@ module Sinatra
# class App < Sinatra::Base
# register Sinatra::QuietLogger
# end
#
module QuietLogger

def self.registered(app)
Expand Down

0 comments on commit c55b45d

Please sign in to comment.