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

Make component loggers inherit settings from global logger #218

Merged
merged 2 commits into from Feb 8, 2018

Conversation

swillner
Copy link
Contributor

Until component loggers can be setup using configuration ini-files, this makes it much easier to turn off logging, e.g. in Pyhector. Hector logging output should be unchanged.

Copy link
Contributor

@rplzzz rplzzz left a comment

Choose a reason for hiding this comment

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

This all looks good. Also, well done on putting together a series of small, focused PRs, rather than a massive omnibus of changes.

void open( const std::string& logName, const bool echoToScreen,
LogLevel minLogLevel, const bool echoToFile = true) throw ( h_exception );
void open( const std::string& logName, bool echoToScreen,
bool echoToFile, LogLevel minLogLevel ) throw ( h_exception );
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't love this scheme for configuring the logger. I've opened issue #221 to fix it up, but it can wait until after this next release.

@bpbond
Copy link
Member

bpbond commented Jan 17, 2018

I agree with @rplzzz that this needs revisiting later, but thanks @swillner - looks good.

@bpbond bpbond self-requested a review January 17, 2018 14:21
@rplzzz rplzzz merged commit 6a9e60c into JGCRI:rc2.0.0 Feb 8, 2018
@rgieseke rgieseke deleted the rc2.0.0_logging branch February 9, 2018 12:27
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.

None yet

3 participants