logger can print date of log

This commit is contained in:
Martin Pernollet 2013-03-23 18:36:04 +01:00
parent 194b164045
commit 03fcc44740
3 changed files with 23 additions and 24 deletions

View File

@ -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.

View File

@ -17,6 +17,9 @@
<property name="jogl" value="jogl2-rc10"/>
<property name="convexhull" value="../jzy3d-tools-convexhull"/>
<dirname property="dir.basedir" file="${ant.file}"/>
<path id="compile.classpath">
@ -39,6 +42,9 @@
<classpath refid="dir.classpath"/>
<src path="${dir.src.api}/" />
<src path="${dir.src.bridge}/" />
<src path="${convexhull}/src/" />
</javac>
</target>
@ -59,27 +65,6 @@
</zip>
</target>
<!--
<target name="zip.groovy">
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-groovy.zip" update="false">
<fileset dir="${dir.src.groovy}"/>
</zip>
</target>
<target name="zip.jogl">
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-jogl-demos.zip" update="false">
<fileset dir="${dir.src.jogl}"/>
</zip>
</target>
-->
<target name="zip.redbook">
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-redbook.zip" update="false">
<fileset dir="${dir.src.redbook}"/>
</zip>
</target>
<target name="release" depends="clean,jar.api,zip.dependencies,zip.redbook">
<target name="release" depends="clean,jar.api,zip.dependencies">
</target>
</project>

View File

@ -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");