[#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 `%`&hyphen;escape sequences in the specified `logPattern` with `&ast;` and load the specified `filePattern` with the resulting string&period; This utility function converts the log patterns used by various file observers and supplied to their `enableFileLogging` method (see `ball&lowbar;fileobserver`, `ball&lowbar;fileobserver2`, and `ball&lowbar;asyncfileobserver`) to the file pattern used by various utility functions to find the related file(s) on the filesystem (see `balb&lowbar;filecleanerutil` and `balb&lowbar;filecleanerconfiguration`)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
logPatternToFilePattern(
    xref:bsl/string.adoc[bsl::string]* filePattern,
    std::string&lowbar;view const& logPattern);
----


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