Hi Everyone
after lots of playing around with google log, I found that
a) it's support on Tiger, and Liinux on ARM support is lacking. Unfortunately
it's a very big hammer when it comes to logging libraries, in that it has a lot
of logic for stackwalking, dumping thread states, etc., which means it's
dependency on OS/architecture might make Breakpad more difficult to incorporate
as a 3rd-party library. I did contact the owner of google log and he's
receptive to making it lighter weight but it's not something we should wait on.
b) it doesn't support custom log line formats, which would not make the logs
parseable inside emacs as a compilation buffer. I hacked some elisp together to
parse it's output, but it turns out Emacs' next-error function for parsing
compilation errors is not as simple as you might think and I didn't want to go
down that rat's nest.
c) Google log supports some very nice options for turning on/off verbosity from
the command line and that's something I've added to this fork of the Chrome
logging library.
I did look at a few others but in some cases it asn't possible to reference them
as an SVN external and in others they were heavyweight for other reasons(e.g.
logging to the Windows event log)
This will let us get rid of the pre-built libraries. After this change I'll
move the linux tools that currently depend on them over to this logging library.
Thanks,
Neal
THis change set also has a fix for Breakpad to set/restore signal handlers
around a fork() using pthread_atfork() handlers.
On 2010/02/22 23:11:31, mochalatte wrote:
> Hi Everyone
> after lots of playing around with google log, I found that
> a) it's support on Tiger, and Liinux on ARM support is lacking. Unfortunately
> it's a very big hammer when it comes to logging libraries, in that it has a
lot
> of logic for stackwalking, dumping thread states, etc., which means it's
> dependency on OS/architecture might make Breakpad more difficult to
incorporate
> as a 3rd-party library. I did contact the owner of google log and he's
> receptive to making it lighter weight but it's not something we should wait
on.
> b) it doesn't support custom log line formats, which would not make the logs
> parseable inside emacs as a compilation buffer. I hacked some elisp together
to
> parse it's output, but it turns out Emacs' next-error function for parsing
> compilation errors is not as simple as you might think and I didn't want to go
> down that rat's nest.
> c) Google log supports some very nice options for turning on/off verbosity
from
> the command line and that's something I've added to this fork of the Chrome
> logging library.
>
> I did look at a few others but in some cases it asn't possible to reference
them
> as an SVN external and in others they were heavyweight for other reasons(e.g.
> logging to the Windows event log)
>
> This will let us get rid of the pre-built libraries. After this change I'll
> move the linux tools that currently depend on them over to this logging
library.
>
> Thanks,
>
> Neal
Neal,
Are you thinking about replacing the logging in the processor code with this
framework as well? I'd love to get runtime verbosity control there, certainly.
Hi there,
Is this the CL trying to cut the deps on libglog.a?
That will be great!
Currently only x86 version of libglog.a is available.
But I need build against x64 on linux as well.
What is the status on this?
Thanks a lot!
-Zhurun
Issue 63002: Our own logging library to avoid 3rd party dependencies + added some logging to the mac handler
Created 16 years, 4 months ago by mochalatte
Modified 16 years, 1 month ago
Reviewers: Ted Mielczarek, jimb, zhurunz
Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Comments: 47