promoteBootstrapToParameterizedLog

fun promoteBootstrapToParameterizedLog(paramsToken: String, desiredRootLevel: Level? = null)

Promotes the bootstrap log to the final parameterized log:

Workflow:

  1. Copy the bootstrap log to the final parameterized path (if the bootstrap exists), otherwise ensure the destination file exists.

  2. Switch Log4j2 to write to the new parameterized file (via switchActiveLogFile).

  3. Optionally apply a new root level (via updateRootLoggerLevel).

  4. Best-effort delete of the old bootstrap file (errors ignored).

Ordering minimizes the window where messages could land in the old file.

Parameters

paramsToken

Parameter token used to build the final log filename.

desiredRootLevel

Optional root level to apply after switching files.