Convert logPattern to a filesystem filePattern by replacing %‐escapes with *.

Synopsis

Declared in <ball_logfilecleanerutil.h>

static
void
logPatternToFilePattern(
    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

Name

Description

filePattern

loaded with the converted filesystem pattern

logPattern

log filename pattern containing %‐escape sequences

Created with MrDocs