[#BloombergLP-ball-FileObserver-2constructor-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver.adoc[FileObserver]::FileObserver
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;ball&lowbar;fileobserver&period;h&gt;`

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/FileObserver/2constructor-03.adoc[FileObserver]();
----

[.small]#xref:BloombergLP/ball/FileObserver/2constructor-03.adoc[_» more&period;&period;&period;_]#

Create a file observer using the specified `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/FileObserver/2constructor-01.adoc[FileObserver](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/ball/FileObserver/2constructor-01.adoc[_» more&period;&period;&period;_]#

Create a file observer with the specified `stdoutThreshold`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/FileObserver/2constructor-00.adoc[FileObserver](
    xref:BloombergLP/ball/Severity/Level.adoc[Severity::Level] stdoutThreshold,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/ball/FileObserver/2constructor-00.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/FileObserver/2constructor-09.adoc[FileObserver](
    xref:BloombergLP/ball/Severity/Level.adoc[Severity::Level] stdoutThreshold,
    bool publishInLocalTime,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/ball/FileObserver/2constructor-09.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
|===


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