[#BloombergLP-ball-AsyncFileObserver-2constructor-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AsyncFileObserver.adoc[AsyncFileObserver]::AsyncFileObserver :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<ball_asyncfileobserver.h>` Create an async file observer that logs to `stdout` by default. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/AsyncFileObserver/2constructor-0e.adoc[AsyncFileObserver](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/AsyncFileObserver/2constructor-0e.adoc[_» more..._]# Create an async file observer with the specified `stdoutThreshold`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/AsyncFileObserver/2constructor-0d.adoc[AsyncFileObserver]( xref:BloombergLP/ball/Severity/Level.adoc[Severity::Level] stdoutThreshold, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/AsyncFileObserver/2constructor-0d.adoc[_» more..._]# Create an async file observer with local‐time and threshold options. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/AsyncFileObserver/2constructor-0c.adoc[AsyncFileObserver]( xref:BloombergLP/ball/Severity/Level.adoc[Severity::Level] stdoutThreshold, bool publishInLocalTime, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/AsyncFileObserver/2constructor-0c.adoc[_» more..._]# Create an async file observer with an explicit record‐queue capacity. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/AsyncFileObserver/2constructor-05.adoc[AsyncFileObserver]( xref:BloombergLP/ball/Severity/Level.adoc[Severity::Level] stdoutThreshold, bool publishInLocalTime, int maxRecordQueueSize, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/AsyncFileObserver/2constructor-05.adoc[_» more..._]# Create an async file observer with queue capacity and drop threshold. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/AsyncFileObserver/2constructor-00.adoc[AsyncFileObserver]( xref:BloombergLP/ball/Severity/Level.adoc[Severity::Level] stdoutThreshold, bool publishInLocalTime, int maxRecordQueueSize, xref:BloombergLP/ball/Severity/Level.adoc[Severity::Level] dropRecordsOnFullQueueThreshold, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/AsyncFileObserver/2constructor-00.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | memory allocator; null uses the default | *stdoutThreshold* | minimum severity for records logged to `stdout` | *publishInLocalTime* | whether timestamps are written in local time | *maxRecordQueueSize* | maximum number of queued unpublished records | *dropRecordsOnFullQueueThreshold* | severity below which full‐queue records are dropped |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#