[#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 `&lt;ball&lowbar;asyncfileobserver&period;h&gt;`

Create an async file observer that logs to `stdout` by default&period;


[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&period;&period;&period;_]#

Create an async file observer with the specified `stdoutThreshold`&period;


[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&period;&period;&period;_]#

Create an async file observer with local&hyphen;time and threshold options&period;


[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&period;&period;&period;_]#

Create an async file observer with an explicit record&hyphen;queue capacity&period;


[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&period;&period;&period;_]#

Create an async file observer with queue capacity and drop threshold&period;


[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&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; 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&hyphen;queue records are dropped
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
