[#BloombergLP-ball-FileObserver-enableUserFieldsLogging] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver.adoc[FileObserver]::enableUserFieldsLogging :relfileprefix: ../../../ :mrdocs: Enable the logging of user‐defined fields by this file observer. This method has no effect if logging of user‐defined fields is already enabled, or if a format string other than the default one is in effect. == Synopsis Declared in `<ball_fileobserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use `setFormat` and attributes")]] void enableUserFieldsLogging(); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: Use `setFormat` and attributes. Use of this entity is allowed but discouraged. ==== == Description DEPRECATED: Use `setLogFormat` instead. [.small]#Created with https://www.mrdocs.com[MrDocs]#