-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Logger notifier #77
Conversation
|
||
describe '#logger' do | ||
it 'reads the logger' do | ||
logger = Logger.new(STDOUT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer testing with StringIO
instead of standard out and error. You can see some example usage of StringIO
in the IO notifier spec.
Thanks for opening this pull request! This looks like a good addition to Stoplight. If we do merge this, we will also need to update the notifiers section of the readme to include this notifier. |
Hi thanks for feedback! I've just updated REAMDE and specs. |
@@ -321,7 +334,7 @@ Stoplight: | |||
# config/initializers/stoplight.rb | |||
require 'stoplight' | |||
Stoplight::Light.default_data_store = Stoplight::DataStore::Redis.new(...) | |||
Stoplight::Light.default_notifiers += [Stoplight::Notifier::HipChat.new(...)] | |||
Stoplight::Light.default_notifiers += [Stoplight::Notifier::Logger.new(Rails.logger)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Good catch!
Once you fix the |
Released in v1.2.0. |
No description provided.