Closedown

This commit is contained in:
boccioli_m
2015-06-09 14:27:57 +02:00
parent 44b5fa416a
commit 3a9b99ca26

View File

@@ -95,13 +95,14 @@ public class TestingList extends Panel {
public class NetbeansPluginPanel extends MonitoredPanel {
Logger logger = Logger.getLogger("TestsLog");
String TESTS_DEFAULT_DIR = FilenameUtils.separatorsToSystem("\\home\\script\\tests\\production");
String TESTS_DEFAULT_DIR = FilenameUtils.separatorsToSystem("/home/script/tests/production");
String LOG_DEFAULT_DIR = FilenameUtils.separatorsToSystem("\\home\\script\\tests\\log\\TestsLog.txt");
private void initLogger(){
try {
FileHandler fh;
// This block configure the logger with handler and formatter
fh = new FileHandler(new java.io.File( "." ).getCanonicalPath() + "\\home\\script\\tests\\log\\TestsLog.txt");
fh = new FileHandler(new java.io.File( "." ).getCanonicalPath() + LOG_DEFAULT_DIR);
logger.addHandler(fh);
SimpleFormatter formatter = new SimpleFormatter();
fh.setFormatter(formatter);