-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,7 @@ public BeastMain(File inputFile, BeastConsoleApp consoleApp, int maxErrorCount, | |
|
||
String fileName = inputFile.getName(); | ||
|
||
final Logger infoLogger = Logger.getLogger("dr.app.beast"); | ||
final Logger infoLogger = Logger.getLogger("dr.apps.beast"); | ||
try { | ||
|
||
FileReader fileReader = new FileReader(inputFile); | ||
|
@@ -133,11 +133,14 @@ public boolean isLoggable(LogRecord record) { | |
}); | ||
infoLogger.addHandler(errorHandler); | ||
|
||
if (System.getProperty("citations.filename") != null) { | ||
/*if (System.getProperty("citations.filename") != null) { | ||
FileOutputStream citationStream = new FileOutputStream(System.getProperty("citations.filename")); | ||
Handler citationHandler = new MessageLogHandler(citationStream); | ||
Logger.getLogger("dr.apps.beast").addHandler(citationHandler); | ||
} | ||
}*/ | ||
FileOutputStream citationStream = new FileOutputStream("citations.txt"); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rambaut
Contributor
|
||
Handler citationHandler = new MessageLogHandler(citationStream); | ||
Logger.getLogger("dr.app.beast").addHandler(citationHandler); | ||
|
||
logger.setUseParentHandlers(false); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
can we use the XML file_stem name (like we do for the *.ops report) to make the citation file? my issue is: peeps will lose track of which
citations.txt
refers to their actual analysis.