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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
FileObserver();
----

== Description

Create a file observer that publishes log records to `stdout` if their severity is at least as severe as `Severity&colon;&colon;e&lowbar;WARN`, and has file logging initially disabled&period; Note that `isPublishInLocalTimeEnabled` returns `false` following construction indicating that the timestamp attribute of published records will be written in UTC time (see `enablePublishInLocalTime`)&period; Also note that independent default record formats are in effect for `stdout` and file logging (see `setLogFormat`)&period;


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