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

rlog: add Printf/Println and rename SetNewLogWriter to match standard log pkg. #4

Merged
merged 2 commits into from Dec 1, 2016

Conversation

pritesh
Copy link
Contributor

@pritesh pritesh commented Nov 30, 2016

rlog: add Printf/Println and rename SetNewLogWriter to match standard log pkg.

@pritesh
Copy link
Contributor Author

pritesh commented Nov 30, 2016

Yes but it is good to have some defaults instead of breaking 1000+ line which has those, this way we don't create so many log PR's and replace log with rlog with only change in import function. less PR's, less code change, etc.

@@ -385,6 +385,17 @@ func Infof(format string, a ...interface{}) {
basicLog(levelInfo, notATrace, format, "", a...)
}

// Println prints a message if RLOG_LEVEL is set to INFO or lower.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we have a comment in here then that this is mostly for compatibility, but that it isn't really encouraged? Also, why not set it to DEBUG? That won't break anything and it'll make people think about the levels they want if they really want those messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep will add a comment there.
didn't make it debug because that disables most of the log and we need some fine tuning, till then info is good enough output to have there..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@pritesh pritesh force-pushed the improvement/support-std-log-features branch from 5c57eee to 41a3674 Compare December 1, 2016 00:21
@jbrendel jbrendel merged commit f935597 into master Dec 1, 2016
@jbrendel jbrendel deleted the improvement/support-std-log-features branch December 1, 2016 00:59
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

2 participants