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

Logging is not overrideable #539

Open
GoogleCodeExporter opened this issue Apr 2, 2015 · 1 comment
Open

Logging is not overrideable #539

GoogleCodeExporter opened this issue Apr 2, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I attempted to redirect BP's logging to Chrome's by setting the 
"BP_LOGGING_INCLUDE" define to a file as so:
--- cut here ---
// Copyright 2013 Google Inc. All Rights Reserved.
#ifndef DUMPALYZER_BP_LOGGING_H_
#define DUMPALYZER_BP_LOGGING_H_

#include "base/logging.h"

#define BPLOG LOG

#endif  // DUMPALYZER_BP_LOGGING_H_
--- cut here ---

This results in compilation errors when the BPLOG_IF macro is expanded, as so:

1>..\breakpad\src\processor\minidump.cc(812): error C2679: binary '&' : no 
operator found which takes a right-hand operand of type 'bool' (or there is no 
acceptable conversion)
1>          C:\src\dumpalyzer\src\breakpad\src\processor/logging.h(130): could 
be 'void google_breakpad::LogMessageVoidify::operator 
&(base_logging::LogMessage &)'
1>          while trying to match the argument list 
'(google_breakpad::LogMessageVoidify, bool)'

It would probably be better to allow users to override that macro explicitly as 
well.

Original issue reported on code.google.com by [email protected] on 29 Jul 2013 at 2:19

@GoogleCodeExporter
Copy link
Author

I didn't think you were supposed to override BPLOG directly, but instead 
override the individual streams, like:
http://code.google.com/p/google-breakpad/source/browse/trunk/src/client/mac/test
s/testlogging.h

I guess logging.h claims otherwise, though:
http://code.google.com/p/google-breakpad/source/browse/trunk/src/processor/loggi
ng.h#36

Original comment by ted.mielczarek on 29 Jul 2013 at 2:36

  • Added labels: ****
  • Removed labels: ****

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

No branches or pull requests

1 participant