switch Active Log File
Switches the active Log4j2 file appender to write to newAbsoluteBasePath.
Preconditions:
Your Log4j2 configuration must reference the
baseLogFileNamesystem property (e.g., in the file appenderfileName/filePattern).
Steps:
Set
baseLogFileNamesystem property.Reconfigure the current LoggerContext.
Parameters
new Absolute Base Path
Absolute base path used by the file appender.