in src/main/java/org/apache/cassandra/distributed/api/ICluster.java [118:138]
static void setupLogging()
{
try
{
File root = Files.createTempDirectory("in-jvm-dtest").toFile();
root.deleteOnExit();
String logConfigPropertyName = System.getProperty(PROPERTY_PREFIX + ".logConfigProperty", "logback.configurationFile");
Path testConfPath = Paths.get(System.getProperty(PROPERTY_PREFIX + ".logConfigPath", "test/conf/logback-dtest.xml"));
Path logConfPath = Paths.get(root.getPath(), testConfPath.getFileName().toString());
if (!logConfPath.toFile().exists())
{
Files.copy(testConfPath, logConfPath);
}
System.setProperty(logConfigPropertyName, "file://" + logConfPath);
}
catch (IOException e)
{
throw new RuntimeException(e);
}
}