BloombergLP::ball::AsyncFileObserver::AsyncFileObserver

Constructors

Synopses

Declared in <ball_asyncfileobserver.h>

Create an async file observer that logs to stdout by default.

explicit
AsyncFileObserver(bslma::Allocator* basicAllocator = 0);
» more...

Create an async file observer with the specified stdoutThreshold.

explicit
AsyncFileObserver(
    Severity::Level stdoutThreshold,
    bslma::Allocator* basicAllocator = 0);
» more...

Create an async file observer with local-time and threshold options.

AsyncFileObserver(
    Severity::Level stdoutThreshold,
    bool publishInLocalTime,
    bslma::Allocator* basicAllocator = 0);
» more...

Create an async file observer with an explicit record-queue capacity.

AsyncFileObserver(
    Severity::Level stdoutThreshold,
    bool publishInLocalTime,
    int maxRecordQueueSize,
    bslma::Allocator* basicAllocator = 0);
» more...

Create an async file observer with queue capacity and drop threshold.

AsyncFileObserver(
    Severity::Level stdoutThreshold,
    bool publishInLocalTime,
    int maxRecordQueueSize,
    Severity::Level dropRecordsOnFullQueueThreshold,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default
stdoutThresholdminimum severity for records logged to stdout
publishInLocalTimewhether timestamps are written in local time
maxRecordQueueSizemaximum number of queued unpublished records
dropRecordsOnFullQueueThresholdseverity below which full-queue records are dropped