gohome1984 / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Breakpad needs logging that supports more granularity #295

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now the processor lib can log at either ERROR or INFO severities. 
These map to STDERR and STDOUT, respectively.  We should support finer
grained granularity, and consider moving to something like glog:

http://code.google.com/p/google-glog/

Original issue reported on code.google.com by neal...@gmail.com on 27 Feb 2009 at 1:47

GoogleCodeExporter commented 9 years ago
We definitely need some saner logging. The processor is super verbose at the 
moment.

Original comment by ted.mielczarek on 27 Feb 2009 at 4:59

GoogleCodeExporter commented 9 years ago
Sorry for reviving this thread.  I agree with the premise and have implemented 
it.

The downside to this implementation is that it breaks some consistency with 
glog that I think the original author intended. i.e. the severity levels 
includes verbose and debug.

I saw that the original author tried to be as similar to glog as possible, but 
Breakpad is a much smaller project and may not need DLOG(...), VLOG(...). 
Lastly I did not bother with command line flags because parsing it with 
environment variable is so much simpler.

Tested on Ubuntu 12.04 with local changes for sys_prctl.

Original comment by crest...@gmail.com on 21 Mar 2014 at 2:35

Attachments: