Create a cstdio observer that transmits log records to a stream.

Synopsis

Declared in <ball_cstdioobserver.h>

explicit
CstdioObserver(
    FILE* stream,
    allocator_type const& allocator = allocator_type());

Description

Create a cstdio 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 cstdio logging (see setFormat).

Parameters

Name

Description

stream

output file for published log records

allocator

memory allocator; defaults to the default allocator

Created with MrDocs