[#BloombergLP-ball-LogFileCleanerUtil-logPatternToFilePattern] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LogFileCleanerUtil.adoc[LogFileCleanerUtil]::logPatternToFilePattern :relfileprefix: ../../../ :mrdocs: Convert `logPattern` to a filesystem `filePattern` by replacing `%`‐escapes with `*`. == 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); ---- == Description 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`). == Parameters [cols="1,4"] |=== | Name| Description | *filePattern* | loaded with the converted filesystem pattern | *logPattern* | log filename pattern containing `%`‐escape sequences |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#