[#BloombergLP-ball-LogFileCleanerUtil-logPatternToFilePattern] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LogFileCleanerUtil.adoc[LogFileCleanerUtil]::logPatternToFilePattern :relfileprefix: ../../../ :mrdocs: Substitute all occurrences of valid `%`‐escape sequences in the specified `logPattern` with `*` and load the specified `filePattern` with the resulting string. This utility function converts the log patterns used by various file observers and supplied to their `enableFileLogging` method (see `ball_fileobserver`, `ball_fileobserver2`, and `ball_asyncfileobserver`) to the file pattern used by various utility functions to find the related file(s) on the filesystem (see `balb_filecleanerutil` and `balb_filecleanerconfiguration`). == Synopsis Declared in `<ball_logfilecleanerutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void logPatternToFilePattern( xref:bsl/string.adoc[bsl::string]* filePattern, std::string_view const& logPattern); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#