Are Google journal entries wrapped in a mutex?

Using the Google logging library (glog-0.3.2), are there individual entries sent to the log wrapped by the mutex? That is, can other recordings spoil the recording? Think it translates, verb-streams? And if the registrar is configured to echo to the console, as well as to the file without its own mutex, is there a way to block printf / cout from distorting output from LOG ()? I suspect not, but wondered if there could be a way to block a mutex that could wrap up a few statements.

+5
source share
2 answers

Yes, glog can be thread safe.

Raw magazine

, - . , , . . src/glog/raw_logging.h.in.

http://google-glog.googlecode.com/svn/trunk/doc/glog.html

+3

, "Raw Logging" glog . raw_logging - GLOG, , .

logging.h logging.c, , glog -. :

  • glog , - LOG, ( fwrite() write())
  • glog , .
  • glog , .
+13

All Articles