public final class AgentLogManagerLog4j2Impl extends java.lang.Object implements AgentLogManager
Constructor and Description |
---|
AgentLogManagerLog4j2Impl(org.apache.logging.log4j.core.LoggerContext context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
getLogFilePath()
Get the current location of the agent log file.
|
void |
relocateLogFile(java.nio.file.Path destinationPath)
Attempt to relocate the agent log file inside the job directory.
|
public AgentLogManagerLog4j2Impl(org.apache.logging.log4j.core.LoggerContext context)
context
- the log4j2 logger contextpublic java.nio.file.Path getLogFilePath()
getLogFilePath
in interface AgentLogManager
public void relocateLogFile(java.nio.file.Path destinationPath) throws java.io.IOException
relocateLogFile
in interface AgentLogManager
destinationPath
- the destination pathjava.io.IOException
- if relocation fails