Constructors
Synopses
Declared in <ball_asyncfileobserver.h>
Create an async file observer that logs to stdout by default.
explicit
AsyncFileObserver(bslma::Allocator* basicAllocator = 0);
Create an async file observer with the specified stdoutThreshold.
explicit
AsyncFileObserver(
Severity::Level stdoutThreshold,
bslma::Allocator* basicAllocator = 0);
Create an async file observer with local‐time and threshold options.
AsyncFileObserver(
Severity::Level stdoutThreshold,
bool publishInLocalTime,
bslma::Allocator* basicAllocator = 0);
Create an async file observer with an explicit record‐queue capacity.
AsyncFileObserver(
Severity::Level stdoutThreshold,
bool publishInLocalTime,
int maxRecordQueueSize,
bslma::Allocator* basicAllocator = 0);
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);
Parameters
Name |
Description |
basicAllocator |
memory allocator; null uses the default |
stdoutThreshold |
minimum severity for records logged to |
publishInLocalTime |
whether timestamps are written in local time |
maxRecordQueueSize |
maximum number of queued unpublished records |
dropRecordsOnFullQueueThreshold |
severity below which full‐queue records are dropped |
Created with MrDocs