Skip to content
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 ability to override the default logger #167

Merged

Conversation

gpetras
Copy link

@gpetras gpetras commented Feb 10, 2015

No description provided.

@logger.level = @log_level

if @logger
raise ArgumentError, "logger parameter must be a Logger object" if @logger.class != Logger
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change this check to be .. unless @logger.is_a?(Logger) as the logger class can be a custom logger that inherits from the Logger class.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. I'll get that updated.

@gpetras gpetras force-pushed the feature/allow_alternate_logger branch from 6e72793 to b5c69b2 Compare March 9, 2015 15:42
arangamani added a commit that referenced this pull request Mar 10, 2015
add ability to override the default logger
@arangamani arangamani merged commit 9930fdd into arangamani:master Mar 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants