From 03fcc4474002484630084ced88aa42137b1ea225 Mon Sep 17 00:00:00 2001 From: Martin Pernollet Date: Sat, 23 Mar 2013 18:36:04 +0100 Subject: [PATCH] logger can print date of log --- README.md | 9 ++++++-- build.xml | 29 ++++++------------------ src/api/org/jzy3d/utils/LoggerUtils.java | 9 ++++++++ 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index c9f87f4d..7410d921 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Project layout -------------- Source organisation - src/api holds the API sources -- src/bridge holds classes to ease injecting of components from a given windowing toolkit to another one (awt, swing, swt, newt) +- src/bridge holds classes to ease injection of components from a given windowing toolkit to another one (awt, swing, swt, newt) - src/tests holds - ChartTest, a tool to compare a chart with a previously saved screenshot - Replay, a utility to record and validate a sequence of mouse and key interactions results on a chart (work in progress) @@ -19,10 +19,15 @@ Library dependencies - junit Project dependencies +These project dependencies are set through eclipse .classpath file. - jzy3d-tools-convexhull +Build files +- build.xml +- javadoc.xml -Satellite projects depend on Jzy3d + +Satellite projects depending on Jzy3d -------------- Satellite projects are extensions of the framework that remain external to the API. diff --git a/build.xml b/build.xml index 8e880960..5c3fd0ca 100644 --- a/build.xml +++ b/build.xml @@ -16,6 +16,9 @@ + + + @@ -39,6 +42,9 @@ + + + @@ -59,27 +65,6 @@ - - - - - - - - - - + diff --git a/src/api/org/jzy3d/utils/LoggerUtils.java b/src/api/org/jzy3d/utils/LoggerUtils.java index 3a8d284f..ff6525b6 100644 --- a/src/api/org/jzy3d/utils/LoggerUtils.java +++ b/src/api/org/jzy3d/utils/LoggerUtils.java @@ -31,6 +31,15 @@ public class LoggerUtils { level(Level.ERROR); } + public static void minimalDated() { + Logger root = Logger.getRootLogger(); + //root.addAppender(new ConsoleAppender(new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN))); + root.addAppender(new ConsoleAppender(new PatternLayout("%-5p [%t][%c][%d{HH:mm:ss}]: %m%n"))); + level(Level.ERROR); + } + + + public static void level(Level level){ Logger root = Logger.getRootLogger(); Logger pkgLogger = root.getLoggerRepository().getLogger("com.jzy3d");