Skip to content
Snippets Groups Projects
Commit 0bdd0f1b authored by Florian Angerer's avatar Florian Angerer
Browse files

Used a more compact logging format.

parent c6ab7df6
Branches
No related tags found
No related merge requests found
...@@ -63,6 +63,12 @@ import com.oracle.truffle.r.test.packages.analyzer.model.RPackage; ...@@ -63,6 +63,12 @@ import com.oracle.truffle.r.test.packages.analyzer.model.RPackage;
* </p> * </p>
*/ */
public class PTAMain { public class PTAMain {
// must be before the logger is created to take effect
static {
System.setProperty("java.util.logging.SimpleFormatter.format", "%4$s: %5$s [%1$tc]%n");
}
private static final Logger LOGGER = Logger.getLogger(PTAMain.class.getName()); private static final Logger LOGGER = Logger.getLogger(PTAMain.class.getName());
private static final String LOG_FILE_NAME = "pta.log"; private static final String LOG_FILE_NAME = "pta.log";
...@@ -170,6 +176,7 @@ public class PTAMain { ...@@ -170,6 +176,7 @@ public class PTAMain {
} }
rootLogger.setLevel(defaultLogLevel); rootLogger.setLevel(defaultLogLevel);
System.setProperty("java.util.logging.SimpleFormatter.format", "%4$s: %5$s [%1$tc]%n");
if (parser.has("console")) { if (parser.has("console")) {
consoleHandler.setLevel(defaultLogLevel); consoleHandler.setLevel(defaultLogLevel);
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment