Create a stream observer that transmits log records to stream.

Synopsis

Declared in <ball_streamobserver.h>

explicit
StreamObserver(
    std::ostream* stream,
    allocator_type const& allocator = allocator_type());

Description

Create a stream observer that transmits log records to the specified stream. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. Note that a default record format is in effect for stream logging (see logRecordDefault).

Parameters

Name

Description

stream

output stream to which log records are written

allocator

memory allocator used to supply memory

Created with MrDocs