com.teamscale.jacoco.agent.util.LogDirectoryPropertyDefiner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of teamscale-jacoco-agent Show documentation
Show all versions of teamscale-jacoco-agent Show documentation
JVM profiler that simplifies various aspects around recording and uploading test coverage
package com.teamscale.jacoco.agent.util;
import ch.qos.logback.core.PropertyDefinerBase;
import java.nio.file.Path;
/** Defines a property that contains the default path to which log files should be written. */
public class LogDirectoryPropertyDefiner extends PropertyDefinerBase {
@Override
public String getPropertyValue() {
Path tempDirectory = AgentUtils.getMainTempDirectory();
return tempDirectory.resolve("logs").toAbsolutePath().toString();
}
}