A std::ostream implementation for use by the logging macros.

Synopsis

Declared in <folly/logging/LogStream.h>

class LogStream
    : public std::ostream

Description

All‐in‐all this is pretty similar to std::stringstream, but lets us destructively extract an rvalue‐reference to the underlying string.

Base Classes

Name

Description

std::ostream

Member Functions

Name

Description

LogStream [constructor]

Constructs a stream bound to the given processor.

~LogStream [destructor] [virtual]

Destroys the stream.

empty

Tests whether the stream has buffered any output.

extractString

Extracts the buffered string, leaving the stream empty.

getProcessor

Returns the processor bound to this stream.

Created with MrDocs