Commit 618652ef authored by Jonathan Shahen's avatar Jonathan Shahen
Browse files

debugging commit

parent b22626e6
......@@ -40,7 +40,7 @@ public class MohawkInstance {
// Logger Fields
public static final Logger logger = Logger.getLogger("mohawk");
private String Logger_filepath = "mohawk.log";
private String Logger_folderpath = "";
private String Logger_folderpath = "logs";
private ConsoleHandler consoleHandler = new ConsoleHandler();
private Level LoggerLevel;
private FileHandler fileHandler;
......@@ -382,6 +382,8 @@ public class MohawkInstance {
}
// Add Logger File Handler
if (!Logger_filepath.isEmpty()) {
File f = new File(Logger_folderpath + File.separator);
f.mkdirs();
fileHandler = new FileHandler(Logger_folderpath + File.separator + Logger_filepath);
fileHandler.setLevel(getLoggerLevel());
fileHandler.setFormatter(new MohawkCSVFileFormatter());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment