Closedown
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user