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
log: Request for advanced logging. #2236
Labels
Comments
Go does not have the C++ features that the Google logging package needs to provide the functionality you ask for. No macros, for one thing. More generally, there is no way to provide logging levels efficiently, since the arguments would always be evaluated even if the logging call is not going to produce any output. Because these features cannot be provided well, they will not be provided at all. There are external implementations of logging that are prepared to make the compromise differently; perhaps they can help you. Status changed to WontFix. |
As I understand, the Google C++ logging package evaluates the arguments whether or not they produce any output (for example, I know it evaluates the parameters of CHECK and LOG expressions but I do not know whether or not the streamed values are evaluated in the case the CHECK or LOG would produce not output). If this "excessive" evaluation of parameters is really an issue, then I understand the exclusion from the Go libraries (although I would be interested in hearing the motivation behind this claim, especially with regards to the motivation for making the default logging for the C++ library always evaluate its parameters). Is it just the issue of evaluating arguments? There appears to be the additional claim that Go, lacking macros and a preprocessor, cannot support a clean logging package. |
mikioh
changed the title
Request for advanced logging.
log: Request for advanced logging.
Apr 12, 2015
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by awreece:
The text was updated successfully, but these errors were encountered: