[#BloombergLP-ball-AsyncFileObserver-isFileLoggingEnabled-0ac]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AsyncFileObserver.adoc[AsyncFileObserver]::isFileLoggingEnabled
:relfileprefix: ../../../
:mrdocs:

`isFileLoggingEnabled` overloads

== Synopses

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

Return `true` if file logging is enabled for this async file observer, and `false` otherwise&period; Load the optionally 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 async file observer may still be logged to `stdout` when this method returns `false`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/ball/AsyncFileObserver/isFileLoggingEnabled-00.adoc[isFileLoggingEnabled]() const;
----

[.small]#xref:BloombergLP/ball/AsyncFileObserver/isFileLoggingEnabled-00.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, loading the specified `result`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/ball/AsyncFileObserver/isFileLoggingEnabled-0a3.adoc[isFileLoggingEnabled](xref:bsl/string.adoc[bsl::string]* result) const;
----

[.small]#xref:BloombergLP/ball/AsyncFileObserver/isFileLoggingEnabled-0a3.adoc[_» more&period;&period;&period;_]#

Return `true` if file logging is enabled for this async 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 async file observer may still be logged to `stdout` when this method returns `false`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/ball/AsyncFileObserver/isFileLoggingEnabled-03.adoc[isFileLoggingEnabled](std::pmr::string* result) const;
----

[.small]#xref:BloombergLP/ball/AsyncFileObserver/isFileLoggingEnabled-03.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, loading the specified `result`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/ball/AsyncFileObserver/isFileLoggingEnabled-0ab.adoc[isFileLoggingEnabled](std::string* result) const;
----

[.small]#xref:BloombergLP/ball/AsyncFileObserver/isFileLoggingEnabled-0ab.adoc[_» more&period;&period;&period;_]#


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