Skip to content

Commit 5387de2

Browse files
committed
Update README.md
1 parent dd1f048 commit 5387de2

1 file changed

Lines changed: 25 additions & 13 deletions

File tree

README.md

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ If you want to use proxy for sending request, you can do it in such way:
7373

7474
config.proxy = { uri: '127.0.0.1:8118', user: 'user_name', password: 'some_password' }
7575

76-
For internal logging stackify-api-ruby you can use such logger:
77-
78-
config.logger = Logger.new(File.join(Rails.root, "log", "stackify.log"))
79-
config.logger.level = Logger::DEBUG
80-
8176
After logs configuring you should wrap up your logger:
8277

8378
logger = Logger.new('mylog.log')
@@ -135,18 +130,35 @@ Also there are two methods for getting last values of metrics:
135130

136131
- get_latest_all_metrics - return all values of existed metrics
137132

138-
``` Stackify::Metrics.get_latest_all_metrics```
133+
``` Stackify::Metrics.get_latest_all_metrics ```
139134

140135
## Requirements
136+
141137
Ruby: 1.9/2.0/2.1
142138

143139
Rails: 3.x/4.x
144140

145-
Contributing
146-
------------------
141+
## Troubleshooting
142+
143+
If there are problems, you can enable internal logging of the stackify-api-ruby project. Uncomment out the config.logger and config.logger.level lines in the 'config/initializers/stackify.rb' file:
144+
145+
```
146+
config.logger = Logger.new(File.join(Rails.root, "log", "stackify.log"))
147+
config.logger.level = Logger::DEBUG
148+
```
149+
150+
## License
151+
152+
Copyright 2015 Stackify, LLC.
153+
154+
Licensed under the Apache License, Version 2.0 (the "License");
155+
you may not use this file except in compliance with the License.
156+
You may obtain a copy of the License at
157+
158+
http://www.apache.org/licenses/LICENSE-2.0
147159

148-
1. Fork it ( https://github.com/[my-github-username]/stackify/fork )
149-
2. Create your feature branch (`git checkout -b my-new-feature`)
150-
3. Commit your changes (`git commit -am 'Add some feature'`)
151-
4. Push to the branch (`git push origin my-new-feature`)
152-
5. Create a new Pull Request
160+
Unless required by applicable law or agreed to in writing, software
161+
distributed under the License is distributed on an "AS IS" BASIS,
162+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
163+
See the License for the specific language governing permissions and
164+
limitations under the License.

0 commit comments

Comments
 (0)