zhangjl / google-glog

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

Feature request: add support for writing binary logs #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

The current glog interface doesn't support user applications to emit binary 
logs. Can an additional API be added that results in binary logs getting 
written ?

Possibly, a BLOG() macro can be added, which takes the name of a component as 
an argument and writes the string provided there in binary form. The size of 
the string can be prepended before being dumped to the binary log file. The 
name of the component would determine the name of the log file that is 
produced on disk. This way, multiple components running within the same 
process can produce different binary logs.

Original issue reported on code.google.com by mohit.a...@gmail.com on 21 Jan 2010 at 1:31