MCPcopy Create free account
hub / github.com/dachev/node-cld / LogStream

Class LogStream

chromium/base/logging.h:874–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872 };
873
874 class LogStream : public ostrstream {
875 public:
876 LogStream(char *buf, int len, int ctr)
877 : ostrstream(buf, len),
878 ctr_(ctr) {
879 self_ = this;
880 }
881
882 int ctr() const { return ctr_; }
883 void set_ctr(int ctr) { ctr_ = ctr; }
884 LogStream* self() const { return self_; }
885
886 private:
887 int ctr_; // Counter hack (for the LOG_EVERY_X() macro)
888 LogStream *self_; // Consistency check hack
889 };
890
891public:
892 // icc 8 requires this typedef to avoid an internal compiler error.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected