stackify-api-ruby 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/lib/stackify/version.rb +1 -1
- data/stackify-api-ruby.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e279fd82f66b4a337b740251468dc61f5f9bb8d
|
4
|
+
data.tar.gz: 0a03ef09c48705211493eabd72ebfdfc17f34a2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ca663b56f8a19bdcacdd896280387095c63e9d621bffe98b573b58851a5092be74cd305541568185c9cbf8be26cb7e7347c7f675b6a9bf241d1e9f1c58cef6a
|
7
|
+
data.tar.gz: 56c4de85f2e95928019973e5210c00be97f05882b3c0c45668e6855e00c63265cf002b937c05cb538b06049addf5b3f4a4e773d3904bc10911c62866761e097a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Usage: Logging
|
|
30
30
|
------------------
|
31
31
|
### Rails Environment
|
32
32
|
|
33
|
-
stackify-api-ruby starts with start of Rails. Every error, which occurs within your application, will be
|
33
|
+
stackify-api-ruby starts with start of Rails. Every error, which occurs within your application, will be caught and sent to Stackify automatically. The same situation with logs - you just use the Rails logger as usual:
|
34
34
|
|
35
35
|
Rails.logger.info "Some log message"
|
36
36
|
|
@@ -45,7 +45,7 @@ After that you need to make base configuration:
|
|
45
45
|
Stackify.setup do |config|
|
46
46
|
config.api_key = "your_api_key"
|
47
47
|
config.env = :development
|
48
|
-
config.app_name = "Your
|
48
|
+
config.app_name = "Your app name"
|
49
49
|
config.app_location = "/somewhere/public"
|
50
50
|
end
|
51
51
|
|
@@ -60,7 +60,7 @@ You can set minimal level of logs, which should be caught by gem:
|
|
60
60
|
|
61
61
|
config.log_level = :error
|
62
62
|
|
63
|
-
If you want to use proxy for
|
63
|
+
If you want to use proxy for sending request, you can do it in such way:
|
64
64
|
|
65
65
|
config.with_proxy = true
|
66
66
|
config.proxy_host = "127.0.0.1"
|
@@ -68,11 +68,11 @@ If you want to use proxy for sendig request, you can do it in such way:
|
|
68
68
|
config.proxy_user = nil
|
69
69
|
config.proxy_pass = nil
|
70
70
|
|
71
|
-
For logging
|
71
|
+
For internal logging stackify-api-ruby uses such logger:
|
72
72
|
|
73
73
|
config.logger = Logger.new(File.join(Rails.root, "log", "stackify.log"))
|
74
74
|
|
75
|
-
After
|
75
|
+
After logs configuring you should wrap up your logger:
|
76
76
|
|
77
77
|
logger = Logger.new('mylog.log')
|
78
78
|
logger = Stackify::LoggerProxy.new(logger)
|
data/lib/stackify/version.rb
CHANGED
data/stackify-api-ruby.gemspec
CHANGED