From ea973c14c3e2d658048c1ac11652f840f06cfef3 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 31 Jan 2013 22:37:56 +0000 Subject: [PATCH] - change logging from logger.info() logger.fine and logger.warning() git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10272 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../android/com/jme3/app/AndroidHarness.java | 16 ++++++------ .../com/jme3/asset/AndroidAssetManager.java | 2 +- .../renderer/android/OGLESShaderRenderer.java | 2 +- .../system/android/AndroidConfigChooser.java | 26 +++++++++---------- .../com/jme3/system/android/OGLESContext.java | 8 +++--- .../jme3test/android/SimpleTexturedTest.java | 2 +- .../plugins/blender/textures/ImageLoader.java | 6 ++--- .../blender/textures/TextureHelper.java | 2 +- .../jme3/export/binary/BinaryExporter.java | 2 +- .../jme3/export/binary/BinaryImporter.java | 2 +- .../com/jme3/asset/DesktopAssetManager.java | 2 +- .../com/jme3/bounding/BoundingSphere.java | 2 +- engine/src/core/com/jme3/math/Matrix4f.java | 6 ++--- .../src/core/com/jme3/system/NullContext.java | 4 +-- .../com/jme3/system/ios/IosAssetManager.java | 2 +- .../jogl/com/jme3/system/jogl/JoglCanvas.java | 4 +-- .../com/jme3/system/jogl/JoglDisplay.java | 4 +-- .../com/jme3/system/jogl/JoglNewtCanvas.java | 4 +-- .../com/jme3/system/jogl/JoglNewtDisplay.java | 4 +-- .../jme3/system/jogl/JoglOffscreenBuffer.java | 4 +-- .../com/jme3/input/lwjgl/LwjglKeyInput.java | 4 +-- .../com/jme3/input/lwjgl/LwjglMouseInput.java | 4 +-- .../system/lwjgl/LwjglAbstractDisplay.java | 2 +- .../com/jme3/system/lwjgl/LwjglDisplay.java | 2 +- .../system/lwjgl/LwjglOffscreenBuffer.java | 4 +-- .../terrain/heightmap/AbstractHeightMap.java | 2 +- .../terrain/heightmap/CombinerHeightMap.java | 2 +- .../terrain/heightmap/FluidSimHeightMap.java | 2 +- .../jme3/terrain/heightmap/HillHeightMap.java | 4 +-- .../ParticleDepositionHeightMap.java | 2 +- engine/src/test/jme3test/TestChooser.java | 6 ++--- .../converters/model/strip/Stripifier.java | 18 ++++++------- 32 files changed, 78 insertions(+), 78 deletions(-) diff --git a/engine/src/android/com/jme3/app/AndroidHarness.java b/engine/src/android/com/jme3/app/AndroidHarness.java index ff4efab62..10e70a7cf 100644 --- a/engine/src/android/com/jme3/app/AndroidHarness.java +++ b/engine/src/android/com/jme3/app/AndroidHarness.java @@ -166,7 +166,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt @Override public void onCreate(Bundle savedInstanceState) { - logger.info("onCreate"); + logger.fine("onCreate"); super.onCreate(savedInstanceState); JmeAndroidSystem.setActivity(this); @@ -230,7 +230,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt @Override protected void onRestart() { - logger.info("onRestart"); + logger.fine("onRestart"); super.onRestart(); if (app != null) { app.restart(); @@ -240,13 +240,13 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt @Override protected void onStart() { - logger.info("onStart"); + logger.fine("onStart"); super.onStart(); } @Override protected void onResume() { - logger.info("onResume"); + logger.fine("onResume"); super.onResume(); if (view != null) { view.onResume(); @@ -282,7 +282,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt protected void onPause() { loseFocus(); - logger.info("onPause"); + logger.fine("onPause"); super.onPause(); if (view != null) { view.onPause(); @@ -315,16 +315,16 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt @Override protected void onStop() { - logger.info("onStop"); + logger.fine("onStop"); super.onStop(); } @Override protected void onDestroy() { - logger.info("onDestroy"); + logger.fine("onDestroy"); final DataObject data = (DataObject) getLastNonConfigurationInstance(); if (data != null || inConfigChange) { - logger.info("In Config Change, not stopping app."); + logger.fine("In Config Change, not stopping app."); } else { if (app != null) { app.stop(!isGLThreadPaused); diff --git a/engine/src/android/com/jme3/asset/AndroidAssetManager.java b/engine/src/android/com/jme3/asset/AndroidAssetManager.java index 711b55c84..3d7ab2b59 100644 --- a/engine/src/android/com/jme3/asset/AndroidAssetManager.java +++ b/engine/src/android/com/jme3/asset/AndroidAssetManager.java @@ -101,7 +101,7 @@ public class AndroidAssetManager extends DesktopAssetManager { registerLoaderSafe("com.jme3.scene.plugins.ogre.SceneLoader", "scene"); - logger.info("AndroidAssetManager created."); + logger.fine("AndroidAssetManager created."); } /** diff --git a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java index 6cd49ffd9..c615be13d 100644 --- a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java +++ b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java @@ -1875,7 +1875,7 @@ public class OGLESShaderRenderer implements Renderer { assert bufId != -1; if (bufId == -1) { - logger.info("invalid buffer id!"); + logger.warning("invalid buffer id!"); } if (context.boundElementArrayVBO != bufId) { diff --git a/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java b/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java index c7cdc498b..9d353047e 100644 --- a/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java +++ b/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java @@ -54,7 +54,7 @@ public class AndroidConfigChooser implements EGLConfigChooser { */ @Override public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { - logger.info("GLSurfaceView asks for egl config, returning: "); + logger.fine("GLSurfaceView asks for egl config, returning: "); logEGLConfig(choosenConfig, display, egl); return choosenConfig; } @@ -76,7 +76,7 @@ public class AndroidConfigChooser implements EGLConfigChooser { compChooser = new ComponentSizeChooser(8, 8, 8, 0, 16, 0); choosenConfig = compChooser.chooseConfig(egl, display); } - logger.info("JME3 using best EGL configuration available here: "); + logger.fine("JME3 using best EGL configuration available here: "); break; case BEST_TRANSLUCENT: compChooser = new ComponentSizeChooser(8, 8, 8, 8, 32, 0); @@ -85,18 +85,18 @@ public class AndroidConfigChooser implements EGLConfigChooser { compChooser = new ComponentSizeChooser(8, 8, 8, 8, 16, 0); choosenConfig = compChooser.chooseConfig(egl, display); } - logger.info("JME3 using best EGL configuration available here with translucent pixels: "); + logger.fine("JME3 using best EGL configuration available here with translucent pixels: "); break; case FASTEST: compChooser = new ComponentSizeChooser(5, 6, 5, 0, 16, 0); choosenConfig = compChooser.chooseConfig(egl, display); - logger.info("JME3 using fastest EGL configuration available here: "); + logger.fine("JME3 using fastest EGL configuration available here: "); break; } if (choosenConfig != null) { - logger.info("JME3 using choosen config: "); + logger.fine("JME3 using choosen config: "); logEGLConfig(choosenConfig, display, egl); pixelFormat = getPixelFormat(choosenConfig, display, egl); clientOpenGLESVersion = getOpenGLVersion(choosenConfig, display, egl); @@ -151,28 +151,28 @@ public class AndroidConfigChooser implements EGLConfigChooser { int[] value = new int[1]; egl.eglGetConfigAttrib(display, conf, EGL10.EGL_RED_SIZE, value); - logger.info(String.format("EGL_RED_SIZE = %d", value[0])); + logger.fine(String.format("EGL_RED_SIZE = %d", value[0])); egl.eglGetConfigAttrib(display, conf, EGL10.EGL_GREEN_SIZE, value); - logger.info(String.format("EGL_GREEN_SIZE = %d", value[0])); + logger.fine(String.format("EGL_GREEN_SIZE = %d", value[0])); egl.eglGetConfigAttrib(display, conf, EGL10.EGL_BLUE_SIZE, value); - logger.info(String.format("EGL_BLUE_SIZE = %d", value[0])); + logger.fine(String.format("EGL_BLUE_SIZE = %d", value[0])); egl.eglGetConfigAttrib(display, conf, EGL10.EGL_ALPHA_SIZE, value); - logger.info(String.format("EGL_ALPHA_SIZE = %d", value[0])); + logger.fine(String.format("EGL_ALPHA_SIZE = %d", value[0])); egl.eglGetConfigAttrib(display, conf, EGL10.EGL_DEPTH_SIZE, value); - logger.info(String.format("EGL_DEPTH_SIZE = %d", value[0])); + logger.fine(String.format("EGL_DEPTH_SIZE = %d", value[0])); egl.eglGetConfigAttrib(display, conf, EGL10.EGL_STENCIL_SIZE, value); - logger.info(String.format("EGL_STENCIL_SIZE = %d", value[0])); + logger.fine(String.format("EGL_STENCIL_SIZE = %d", value[0])); egl.eglGetConfigAttrib(display, conf, EGL10.EGL_RENDERABLE_TYPE, value); - logger.info(String.format("EGL_RENDERABLE_TYPE = %d", value[0])); + logger.fine(String.format("EGL_RENDERABLE_TYPE = %d", value[0])); egl.eglGetConfigAttrib(display, conf, EGL10.EGL_SURFACE_TYPE, value); - logger.info(String.format("EGL_SURFACE_TYPE = %d", value[0])); + logger.fine(String.format("EGL_SURFACE_TYPE = %d", value[0])); } public int getClientOpenGLESVersion() { diff --git a/engine/src/android/com/jme3/system/android/OGLESContext.java b/engine/src/android/com/jme3/system/android/OGLESContext.java index a14d01013..66c6ba962 100644 --- a/engine/src/android/com/jme3/system/android/OGLESContext.java +++ b/engine/src/android/com/jme3/system/android/OGLESContext.java @@ -124,7 +124,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex view.setEGLContextClientVersion(2); // RGB565, Depth16 view.setEGLConfigChooser(5, 6, 5, 0, 16, 0); - logger.info("ConfigType.LEGACY using RGB565"); + logger.fine("ConfigType.LEGACY using RGB565"); } else { EGL10 egl = (EGL10) EGLContext.getEGL(); EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); @@ -180,7 +180,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex renderer.resetGLObjects(); } else { if (!created.get()) { - logger.info("GL Surface created, doing JME3 init"); + logger.fine("GL Surface created, doing JME3 init"); initInThread(); } else { logger.warning("GL Surface already created"); @@ -191,7 +191,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex protected void initInThread() { created.set(true); - logger.info("OGLESContext create"); + logger.fine("OGLESContext create"); logger.log(Level.FINE, "Running on thread: {0}", Thread.currentThread().getName()); // Setup unhandled Exception Handler @@ -235,7 +235,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex timer = null; // do android specific cleaning here - logger.info("Display destroyed."); + logger.fine("Display destroyed."); renderable.set(false); } diff --git a/engine/src/android/jme3test/android/SimpleTexturedTest.java b/engine/src/android/jme3test/android/SimpleTexturedTest.java index 3f7b8d4ca..bfc106b17 100644 --- a/engine/src/android/jme3test/android/SimpleTexturedTest.java +++ b/engine/src/android/jme3test/android/SimpleTexturedTest.java @@ -141,7 +141,7 @@ public class SimpleTexturedTest extends SimpleApplication { // secondCounter has been removed from SimpleApplication //if (secondCounter == 0) - // logger.info("Frames per second: " + timer.getFrameRate()); + // logger.fine("Frames per second: " + timer.getFrameRate()); spheresContainer.rotate(0.2f * tpf, 0.4f * tpf, 0.8f * tpf); } diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/textures/ImageLoader.java b/engine/src/blender/com/jme3/scene/plugins/blender/textures/ImageLoader.java index a0710ce89..4742fe225 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/textures/ImageLoader.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/textures/ImageLoader.java @@ -101,21 +101,21 @@ import java.util.logging.Logger; try { result = this.load(inputStream, flipY); } catch (Exception e) { - LOGGER.info("Unable to load image using AWT loader!"); + logger.warning("Unable to load image using AWT loader!"); } break; case DDS: try { result = ddsLoader.load(inputStream); } catch (Exception e) { - LOGGER.info("Unable to load image using DDS loader!"); + logger.warning("Unable to load image using DDS loader!"); } break; case TGA: try { result = TGALoader.load(inputStream, flipY); } catch (Exception e) { - LOGGER.info("Unable to load image using TGA loader!"); + logger.warning("Unable to load image using TGA loader!"); } break; default: diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java index 27f537dd5..2a5473d71 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java @@ -504,7 +504,7 @@ public class TextureHelper extends AbstractBlenderHelper { LOGGER.log(Level.FINE, "Reading texture from file: {0}", texturePath); result = this.loadImageFromFile(texturePath, blenderContext); } else { - LOGGER.info("Packed texture. Reading directly from the blend file!"); + logger.fine("Packed texture. Reading directly from the blend file!"); Structure packedFile = pPackedFile.fetchData(blenderContext.getInputStream()).get(0); Pointer pData = (Pointer) packedFile.getFieldValue("data"); FileBlockHeader dataFileBlock = blenderContext.getFileBlock(pData.getOldMemoryAddress()); diff --git a/engine/src/core-plugins/com/jme3/export/binary/BinaryExporter.java b/engine/src/core-plugins/com/jme3/export/binary/BinaryExporter.java index 64a2d6f28..215b09e1a 100644 --- a/engine/src/core-plugins/com/jme3/export/binary/BinaryExporter.java +++ b/engine/src/core-plugins/com/jme3/export/binary/BinaryExporter.java @@ -287,7 +287,7 @@ public class BinaryExporter implements JmeExporter { os = null; if (debug ) { - logger.info("Stats:"); + logger.fine("Stats:"); logger.log(Level.FINE, "classes: {0}", classNum); logger.log(Level.FINE, "class table: {0} bytes", classTableSize); logger.log(Level.FINE, "objects: {0}", numLocations); diff --git a/engine/src/core-plugins/com/jme3/export/binary/BinaryImporter.java b/engine/src/core-plugins/com/jme3/export/binary/BinaryImporter.java index a0d4c9541..47ea18e6b 100644 --- a/engine/src/core-plugins/com/jme3/export/binary/BinaryImporter.java +++ b/engine/src/core-plugins/com/jme3/export/binary/BinaryImporter.java @@ -241,7 +241,7 @@ public final class BinaryImporter implements JmeImporter { Savable rVal = readObject(id); if (debug) { - logger.info("Importer Stats: "); + logger.fine("Importer Stats: "); logger.log(Level.FINE, "Tags: {0}", numClasses); logger.log(Level.FINE, "Objects: {0}", numLocs); logger.log(Level.FINE, "Data Size: {0}", dataArray.length); diff --git a/engine/src/core/com/jme3/asset/DesktopAssetManager.java b/engine/src/core/com/jme3/asset/DesktopAssetManager.java index bb5773db6..790f728f5 100644 --- a/engine/src/core/com/jme3/asset/DesktopAssetManager.java +++ b/engine/src/core/com/jme3/asset/DesktopAssetManager.java @@ -84,7 +84,7 @@ public class DesktopAssetManager implements AssetManager { if (configFile != null){ loadConfigFile(configFile); } - logger.info("DesktopAssetManager created."); + logger.fine("DesktopAssetManager created."); } private void loadConfigFile(URL configFile){ diff --git a/engine/src/core/com/jme3/bounding/BoundingSphere.java b/engine/src/core/com/jme3/bounding/BoundingSphere.java index 9d306b106..607403d84 100644 --- a/engine/src/core/com/jme3/bounding/BoundingSphere.java +++ b/engine/src/core/com/jme3/bounding/BoundingSphere.java @@ -348,7 +348,7 @@ public class BoundingSphere extends BoundingVolume { * the list of points to contain. */ public void averagePoints(Vector3f[] points) { - logger.info("Bounding Sphere calculated using average points."); + logger.fine("Bounding Sphere calculated using average points."); center = points[0]; for (int i = 1; i < points.length; i++) { diff --git a/engine/src/core/com/jme3/math/Matrix4f.java b/engine/src/core/com/jme3/math/Matrix4f.java index f0e70ee73..cddae7bc4 100644 --- a/engine/src/core/com/jme3/math/Matrix4f.java +++ b/engine/src/core/com/jme3/math/Matrix4f.java @@ -1208,7 +1208,7 @@ public final class Matrix4f implements Savable, Cloneable, java.io.Serializable */ public Vector4f mult(Vector4f vec, Vector4f store) { if (null == vec) { - logger.info("Source vector is null, null result returned."); + logger.warning("Source vector is null, null result returned."); return null; } if (store == null) { @@ -1249,7 +1249,7 @@ public final class Matrix4f implements Savable, Cloneable, java.io.Serializable */ public Vector4f multAcross(Vector4f vec, Vector4f store) { if (null == vec) { - logger.info("Source vector is null, null result returned."); + logger.warning("Source vector is null, null result returned."); return null; } if (store == null) { @@ -1342,7 +1342,7 @@ public final class Matrix4f implements Savable, Cloneable, java.io.Serializable */ public Vector3f multAcross(Vector3f vec, Vector3f store) { if (null == vec) { - logger.info("Source vector is null, null result returned."); + logger.warning("Source vector is null, null result returned."); return null; } if (store == null) { diff --git a/engine/src/core/com/jme3/system/NullContext.java b/engine/src/core/com/jme3/system/NullContext.java index 0e004db07..f7d4b3d5a 100644 --- a/engine/src/core/com/jme3/system/NullContext.java +++ b/engine/src/core/com/jme3/system/NullContext.java @@ -65,7 +65,7 @@ public class NullContext implements JmeContext, Runnable { } protected void initInThread(){ - logger.info("NullContext created."); + logger.fine("NullContext created."); logger.log(Level.FINE, "Running on thread: {0}", Thread.currentThread().getName()); Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { @@ -135,7 +135,7 @@ public class NullContext implements JmeContext, Runnable { deinitInThread(); - logger.info("NullContext destroyed."); + logger.fine("NullContext destroyed."); } public void destroy(boolean waitFor){ diff --git a/engine/src/ios/com/jme3/system/ios/IosAssetManager.java b/engine/src/ios/com/jme3/system/ios/IosAssetManager.java index 9c4ed49e1..42f1736d6 100644 --- a/engine/src/ios/com/jme3/system/ios/IosAssetManager.java +++ b/engine/src/ios/com/jme3/system/ios/IosAssetManager.java @@ -101,7 +101,7 @@ public class IosAssetManager extends DesktopAssetManager { registerLoaderSafe("com.jme3.scene.plugins.ogre.SceneLoader", "scene"); - logger.info("IosAssetManager created."); + logger.fine("IosAssetManager created."); } /** diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglCanvas.java b/engine/src/jogl/com/jme3/system/jogl/JoglCanvas.java index 71ef11934..1e9b0db25 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglCanvas.java +++ b/engine/src/jogl/com/jme3/system/jogl/JoglCanvas.java @@ -83,7 +83,7 @@ public class JoglCanvas extends JoglAbstractDisplay implements JmeCanvasContext canvas.requestFocus(); super.internalCreate(); - logger.info("Display created."); + logger.fine("Display created."); renderer.initialize(); listener.initialize(); @@ -92,7 +92,7 @@ public class JoglCanvas extends JoglAbstractDisplay implements JmeCanvasContext public void display(GLAutoDrawable glad) { if (!created.get() && renderer != null){ listener.destroy(); - logger.info("Canvas destroyed."); + logger.fine("Canvas destroyed."); super.internalDestroy(); return; } diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java b/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java index f7da75184..e095251f2 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java +++ b/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java @@ -246,7 +246,7 @@ public class JoglDisplay extends JoglAbstractDisplay { canvas.requestFocus(); super.internalCreate(); - logger.info("Display created."); + logger.fine("Display created."); renderer.initialize(); listener.initialize(); @@ -312,7 +312,7 @@ public class JoglDisplay extends JoglAbstractDisplay { device.setFullScreenWindow(null); } frame.dispose(); - logger.info("Display destroyed."); + logger.fine("Display destroyed."); super.internalDestroy(); return; } diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglNewtCanvas.java b/engine/src/jogl/com/jme3/system/jogl/JoglNewtCanvas.java index ddf7125de..6b6824938 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglNewtCanvas.java +++ b/engine/src/jogl/com/jme3/system/jogl/JoglNewtCanvas.java @@ -103,7 +103,7 @@ public class JoglNewtCanvas extends JoglNewtAbstractDisplay implements JmeCanvas canvas.requestFocus(); super.internalCreate(); - logger.info("Display created."); + logger.fine("Display created."); renderer.initialize(); listener.initialize(); @@ -112,7 +112,7 @@ public class JoglNewtCanvas extends JoglNewtAbstractDisplay implements JmeCanvas public void display(GLAutoDrawable glad) { if (!created.get() && renderer != null){ listener.destroy(); - logger.info("Canvas destroyed."); + logger.fine("Canvas destroyed."); super.internalDestroy(); return; } diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglNewtDisplay.java b/engine/src/jogl/com/jme3/system/jogl/JoglNewtDisplay.java index 063ca68d7..a0a6c73c2 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglNewtDisplay.java +++ b/engine/src/jogl/com/jme3/system/jogl/JoglNewtDisplay.java @@ -157,7 +157,7 @@ public class JoglNewtDisplay extends JoglNewtAbstractDisplay { canvas.requestFocus(); super.internalCreate(); - logger.info("Display created."); + logger.fine("Display created."); renderer.initialize(); listener.initialize(); @@ -200,7 +200,7 @@ public class JoglNewtDisplay extends JoglNewtAbstractDisplay { canvas.setFullscreen(false); } canvas.destroy(); - logger.info("Display destroyed."); + logger.fine("Display destroyed."); super.internalDestroy(); return; } diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglOffscreenBuffer.java b/engine/src/jogl/com/jme3/system/jogl/JoglOffscreenBuffer.java index 40ec72855..7f10c7161 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglOffscreenBuffer.java +++ b/engine/src/jogl/com/jme3/system/jogl/JoglOffscreenBuffer.java @@ -81,7 +81,7 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable { renderable.set(true); - logger.info("Offscreen buffer created."); + logger.fine("Offscreen buffer created."); super.internalCreate(); listener.initialize(); @@ -115,7 +115,7 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable { listener.destroy(); renderer.cleanup(); offscreenDrawable.destroy(); - logger.info("Offscreen buffer destroyed."); + logger.fine("Offscreen buffer destroyed."); super.internalDestroy(); } diff --git a/engine/src/lwjgl/com/jme3/input/lwjgl/LwjglKeyInput.java b/engine/src/lwjgl/com/jme3/input/lwjgl/LwjglKeyInput.java index d67b27722..e7b9f9268 100644 --- a/engine/src/lwjgl/com/jme3/input/lwjgl/LwjglKeyInput.java +++ b/engine/src/lwjgl/com/jme3/input/lwjgl/LwjglKeyInput.java @@ -62,7 +62,7 @@ public class LwjglKeyInput implements KeyInput { try { Keyboard.create(); Keyboard.enableRepeatEvents(true); - logger.info("Keyboard created."); + logger.fine("Keyboard created."); } catch (LWJGLException ex) { logger.log(Level.SEVERE, "Error while creating keyboard.", ex); } @@ -94,7 +94,7 @@ public class LwjglKeyInput implements KeyInput { return; Keyboard.destroy(); - logger.info("Keyboard destroyed."); + logger.fine("Keyboard destroyed."); } public boolean isInitialized() { diff --git a/engine/src/lwjgl/com/jme3/input/lwjgl/LwjglMouseInput.java b/engine/src/lwjgl/com/jme3/input/lwjgl/LwjglMouseInput.java index d1375160a..e5afe35a4 100644 --- a/engine/src/lwjgl/com/jme3/input/lwjgl/LwjglMouseInput.java +++ b/engine/src/lwjgl/com/jme3/input/lwjgl/LwjglMouseInput.java @@ -69,7 +69,7 @@ public class LwjglMouseInput implements MouseInput { try { Mouse.create(); - logger.info("Mouse created."); + logger.fine("Mouse created."); supportHardwareCursor = (Cursor.getCapabilities() & Cursor.CURSOR_ONE_BIT_TRANSPARENCY) != 0; // Recall state that was set before initialization @@ -132,7 +132,7 @@ public class LwjglMouseInput implements MouseInput { return; Mouse.destroy(); - logger.info("Mouse destroyed."); + logger.fine("Mouse destroyed."); } public void setCursorVisible(boolean visible){ diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java index e290ed6b7..8197ae19c 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java @@ -194,7 +194,7 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna destroyContext(); listener.destroy(); - logger.info("Display destroyed."); + logger.fine("Display destroyed."); super.internalDestroy(); } diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglDisplay.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglDisplay.java index 492699e7c..40590864a 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglDisplay.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglDisplay.java @@ -179,7 +179,7 @@ public class LwjglDisplay extends LwjglAbstractDisplay { logger.log(Level.SEVERE, "Failed to set display settings!", ex); } listener.reshape(settings.getWidth(), settings.getHeight()); - logger.info("Display restarted."); + logger.fine("Display restarted."); } super.runLoop(); diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java index 75aafc95e..7297db794 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java @@ -81,7 +81,7 @@ public class LwjglOffscreenBuffer extends LwjglContext implements Runnable { renderable.set(true); - logger.info("Offscreen buffer created."); + logger.fine("Offscreen buffer created."); printContextInitInfo(); } catch (LWJGLException ex){ listener.handleError("Failed to create display", ex); @@ -139,7 +139,7 @@ public class LwjglOffscreenBuffer extends LwjglContext implements Runnable { listener.destroy(); renderer.cleanup(); pbuffer.destroy(); - logger.info("Offscreen buffer destroyed."); + logger.fine("Offscreen buffer destroyed."); super.internalDestroy(); } diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/AbstractHeightMap.java b/engine/src/terrain/com/jme3/terrain/heightmap/AbstractHeightMap.java index 7d7b10e00..63692c61b 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/AbstractHeightMap.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/AbstractHeightMap.java @@ -149,7 +149,7 @@ public abstract class AbstractHeightMap implements HeightMap { * @return the value at (x,z). */ public float getTrueHeightAtPoint(int x, int z) { - //logger.info( heightData[x + (z*size)]); + //logger.fine( heightData[x + (z*size)]); return heightData[x + (z * size)]; } diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/CombinerHeightMap.java b/engine/src/terrain/com/jme3/terrain/heightmap/CombinerHeightMap.java index 85d8116b5..283f14974 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/CombinerHeightMap.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/CombinerHeightMap.java @@ -261,7 +261,7 @@ public class CombinerHeightMap extends AbstractHeightMap { } - logger.info("Created heightmap using Combiner"); + logger.fine("Created heightmap using Combiner"); return true; diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/FluidSimHeightMap.java b/engine/src/terrain/com/jme3/terrain/heightmap/FluidSimHeightMap.java index 7470e45c0..d5aff587d 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/FluidSimHeightMap.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/FluidSimHeightMap.java @@ -216,7 +216,7 @@ public class FluidSimHeightMap extends AbstractHeightMap { } normalizeTerrain(NORMALIZE_RANGE); - logger.info("Created Heightmap using fluid simulation"); + logger.fine("Created Heightmap using fluid simulation"); return true; } diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/HillHeightMap.java b/engine/src/terrain/com/jme3/terrain/heightmap/HillHeightMap.java index 038dcb2bc..5a284d857 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/HillHeightMap.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/HillHeightMap.java @@ -81,7 +81,7 @@ public class HillHeightMap extends AbstractHeightMap { + "or minimum radius is greater than maximum radius, " + "or power of flattening is below one"); } - logger.info("Contructing hill heightmap using seed: " + seed); + logger.fine("Contructing hill heightmap using seed: " + seed); this.size = size; this.seed = seed; this.iterations = iterations; @@ -140,7 +140,7 @@ public class HillHeightMap extends AbstractHeightMap { normalizeTerrain(NORMALIZE_RANGE); - logger.info("Created Heightmap using the Hill Algorithm"); + logger.fine("Created Heightmap using the Hill Algorithm"); return true; } diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/ParticleDepositionHeightMap.java b/engine/src/terrain/com/jme3/terrain/heightmap/ParticleDepositionHeightMap.java index 75155e55f..c684aee20 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/ParticleDepositionHeightMap.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/ParticleDepositionHeightMap.java @@ -318,7 +318,7 @@ public class ParticleDepositionHeightMap extends AbstractHeightMap { erodeTerrain(); normalizeTerrain(NORMALIZE_RANGE); - logger.info("Created heightmap using Particle Deposition"); + logger.fine("Created heightmap using Particle Deposition"); return false; diff --git a/engine/src/test/jme3test/TestChooser.java b/engine/src/test/jme3test/TestChooser.java index 9a4c23fa7..b72ab725a 100644 --- a/engine/src/test/jme3test/TestChooser.java +++ b/engine/src/test/jme3test/TestChooser.java @@ -117,14 +117,14 @@ public class TestChooser extends JDialog { } if (directory.exists()) { - logger.info("Searching for Demo classes in \"" + logger.fine("Searching for Demo classes in \"" + directory.getName() + "\"."); addAllFilesInDirectory(directory, classes, pckgname, recursive); } else { try { // It does not work with the filesystem: we must // be in the case of a package contained in a jar file. - logger.info("Searching for Demo classes in \"" + url + "\"."); + logger.fine("Searching for Demo classes in \"" + url + "\"."); URLConnection urlConnection = url.openConnection(); if (urlConnection instanceof JarURLConnection) { JarURLConnection conn = (JarURLConnection) urlConnection; @@ -449,7 +449,7 @@ public class TestChooser extends JDialog { protected void start(String[] args) { final Vector classes = new Vector(); - logger.info("Composing Test list..."); + logger.fine("Composing Test list..."); addDisplayedClasses(classes); setup(classes); Class cls; diff --git a/engine/src/tools/jme3tools/converters/model/strip/Stripifier.java b/engine/src/tools/jme3tools/converters/model/strip/Stripifier.java index 9aaf7df73..9b076e498 100644 --- a/engine/src/tools/jme3tools/converters/model/strip/Stripifier.java +++ b/engine/src/tools/jme3tools/converters/model/strip/Stripifier.java @@ -175,7 +175,7 @@ class Stripifier { edgeInfo01.m_face0 = faceInfo; } else { if (edgeInfo01.m_face1 != null) { - logger.info("BuildStripifyInfo: > 2 triangles on an edge" + logger.fine("BuildStripifyInfo: > 2 triangles on an edge" + v0 + "," + v1 + "... uncertain consequences\n"); } else { edgeInfo01.m_face1 = faceInfo; @@ -201,7 +201,7 @@ class Stripifier { edgeInfo12.m_face0 = faceInfo; } else { if (edgeInfo12.m_face1 != null) { - logger.info("BuildStripifyInfo: > 2 triangles on an edge" + logger.fine("BuildStripifyInfo: > 2 triangles on an edge" + v1 + "," + v2 @@ -230,7 +230,7 @@ class Stripifier { edgeInfo20.m_face0 = faceInfo; } else { if (edgeInfo20.m_face1 != null) { - logger.info("BuildStripifyInfo: > 2 triangles on an edge" + logger.fine("BuildStripifyInfo: > 2 triangles on an edge" + v2 + "," + v0 @@ -301,22 +301,22 @@ class Stripifier { if (fv0 != v0 && fv0 != v1) { if ((fv1 != v0 && fv1 != v1) || (fv2 != v0 && fv2 != v1)) { - logger.info("GetNextIndex: Triangle doesn't have all of its vertices\n"); - logger.info("GetNextIndex: Duplicate triangle probably got us derailed\n"); + logger.fine("GetNextIndex: Triangle doesn't have all of its vertices\n"); + logger.fine("GetNextIndex: Duplicate triangle probably got us derailed\n"); } return fv0; } if (fv1 != v0 && fv1 != v1) { if ((fv0 != v0 && fv0 != v1) || (fv2 != v0 && fv2 != v1)) { - logger.info("GetNextIndex: Triangle doesn't have all of its vertices\n"); - logger.info("GetNextIndex: Duplicate triangle probably got us derailed\n"); + logger.fine("GetNextIndex: Triangle doesn't have all of its vertices\n"); + logger.fine("GetNextIndex: Duplicate triangle probably got us derailed\n"); } return fv1; } if (fv2 != v0 && fv2 != v1) { if ((fv0 != v0 && fv0 != v1) || (fv1 != v0 && fv1 != v1)) { - logger.info("GetNextIndex: Triangle doesn't have all of its vertices\n"); - logger.info("GetNextIndex: Duplicate triangle probably got us derailed\n"); + logger.fine("GetNextIndex: Triangle doesn't have all of its vertices\n"); + logger.fine("GetNextIndex: Duplicate triangle probably got us derailed\n"); } return fv2; }