[#BloombergLP-ball-FileObserver-isFileLoggingEnabled-0654]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver.adoc[FileObserver]::isFileLoggingEnabled
:relfileprefix: ../../../
:mrdocs:

Return whether file logging is enabled, loading the log file name&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
isFileLoggingEnabled(std::pmr::string* result) const;
----

== Description

Return `true` if file logging is enabled for this file observer, and `false` otherwise&period; Load the specified `result` with the name of the current log file if file logging is enabled, and leave `result` unmodified otherwise&period; Note that records received through the `publish` method of this file observer may still be logged to `stdout` when this method returns `false`&period;

== Return Value

`true` if file logging is enabled, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| receives the current log file name when logging is enabled
|===


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