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