mirror of https://github.com/rusefi/jzy3d-api.git
logger can print date of log
This commit is contained in:
parent
194b164045
commit
03fcc44740
|
@ -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.
|
||||
|
||||
|
|
29
build.xml
29
build.xml
|
@ -16,6 +16,9 @@
|
|||
<property name="lib.path" value="org/jzy3d/"/>
|
||||
|
||||
<property name="jogl" value="jogl2-rc10"/>
|
||||
|
||||
<property name="convexhull" value="../jzy3d-tools-convexhull"/>
|
||||
|
||||
|
||||
<dirname property="dir.basedir" file="${ant.file}"/>
|
||||
|
||||
|
@ -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>
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue