httplog 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +9 -3
- data/lib/httplog/http_log.rb +1 -1
- data/lib/httplog/version.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
=
|
1
|
+
= httplog
|
2
2
|
|
3
3
|
Log outgoing HTTP requests made from your application.
|
4
4
|
|
5
5
|
== Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
gem install httplog
|
8
|
+
|
9
9
|
== Usage
|
10
10
|
|
11
11
|
require 'httplog'
|
@@ -22,5 +22,11 @@ You can override the following default options:
|
|
22
22
|
HttpLog.options[:log_request] = true
|
23
23
|
HttpLog.options[:log_data] = true
|
24
24
|
|
25
|
+
So if you want to use this in a Rails app:
|
26
|
+
|
27
|
+
# file: config/initializers/httplog.rb
|
28
|
+
|
29
|
+
HttpLog.options[:logger] = Rails.logger
|
30
|
+
|
25
31
|
|
26
32
|
|
data/lib/httplog/http_log.rb
CHANGED
data/lib/httplog/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: httplog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Thilo Rusche
|
@@ -56,7 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
hash:
|
59
|
+
hash: -1001317091
|
60
60
|
segments:
|
61
61
|
- 0
|
62
62
|
version: "0"
|