diff --git a/engine/src/android/com/jme3/app/AndroidHarness.java b/engine/src/android/com/jme3/app/AndroidHarness.java index 3b97f02bd..ff4efab62 100644 --- a/engine/src/android/com/jme3/app/AndroidHarness.java +++ b/engine/src/android/com/jme3/app/AndroidHarness.java @@ -156,7 +156,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt @Override public Object onRetainNonConfigurationInstance() { - logger.log(Level.INFO, "onRetainNonConfigurationInstance"); + logger.log(Level.FINE, "onRetainNonConfigurationInstance"); final DataObject data = new DataObject(); data.app = this.app; inConfigChange = true; @@ -184,7 +184,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt final DataObject data = (DataObject) getLastNonConfigurationInstance(); if (data != null) { - logger.log(Level.INFO, "Using Retained App"); + logger.log(Level.FINE, "Using Retained App"); this.app = data.app; } else { @@ -195,7 +195,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt Log.d("AndroidHarness", "Resolution from Window, width:" + disp.getWidth() + ", height: " + disp.getHeight()); // Create Settings - logger.log(Level.INFO, "Creating settings"); + logger.log(Level.FINE, "Creating settings"); AppSettings settings = new AppSettings(true); settings.setEmulateMouse(mouseEventsEnabled); settings.setEmulateMouseFlipAxis(mouseEventsInvertX, mouseEventsInvertY); @@ -292,7 +292,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt //pause the audio AudioRenderer result = app.getAudioRenderer(); if (result != null) { - logger.log(Level.INFO, "pause: {0}", result.getClass().getSimpleName()); + logger.log(Level.FINE, "pause: {0}", result.getClass().getSimpleName()); if (result instanceof AndroidAudioRenderer) { AndroidAudioRenderer renderer = (AndroidAudioRenderer) result; renderer.pauseAll(); @@ -417,9 +417,9 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt } public void layoutDisplay() { - logger.log(Level.INFO, "Splash Screen Picture Resource ID: {0}", splashPicID); + logger.log(Level.FINE, "Splash Screen Picture Resource ID: {0}", splashPicID); if (view == null) { - logger.log(Level.INFO, "view is null!"); + logger.log(Level.FINE, "view is null!"); } if (splashPicID != 0) { FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( @@ -448,15 +448,15 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt frameLayout.addView(splashImageView, lp); setContentView(frameLayout); - logger.log(Level.INFO, "Splash Screen Created"); + logger.log(Level.FINE, "Splash Screen Created"); } else { - logger.log(Level.INFO, "Splash Screen Skipped."); + logger.log(Level.FINE, "Splash Screen Skipped."); setContentView(view); } } public void removeSplashScreen() { - logger.log(Level.INFO, "Splash Screen Picture Resource ID: {0}", splashPicID); + logger.log(Level.FINE, "Splash Screen Picture Resource ID: {0}", splashPicID); if (splashPicID != 0) { if (frameLayout != null) { if (splashImageView != null) { @@ -469,10 +469,10 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt } }); } else { - logger.log(Level.INFO, "splashImageView is null"); + logger.log(Level.FINE, "splashImageView is null"); } } else { - logger.log(Level.INFO, "frameLayout is null"); + logger.log(Level.FINE, "frameLayout is null"); } } } diff --git a/engine/src/android/com/jme3/asset/AndroidImageInfo.java b/engine/src/android/com/jme3/asset/AndroidImageInfo.java index 301b5b666..9bf2105a9 100644 --- a/engine/src/android/com/jme3/asset/AndroidImageInfo.java +++ b/engine/src/android/com/jme3/asset/AndroidImageInfo.java @@ -51,7 +51,7 @@ public class AndroidImageInfo extends ImageRaster { if (bitmap != null && !bitmap.isRecycled()) { bitmap.recycle(); bitmap = null; - logger.log(Level.INFO, "Bitmap was deleted. "); + logger.log(Level.FINE, "Bitmap was deleted. "); } } diff --git a/engine/src/android/com/jme3/input/android/AndroidSensorJoyInput.java b/engine/src/android/com/jme3/input/android/AndroidSensorJoyInput.java index ab87a0f9c..6ae7fca1d 100644 --- a/engine/src/android/com/jme3/input/android/AndroidSensorJoyInput.java +++ b/engine/src/android/com/jme3/input/android/AndroidSensorJoyInput.java @@ -141,7 +141,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { // Get instance of Vibrator from current Context vibrator = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); if (vibrator == null) { - logger.log(Level.INFO, "Vibrator Service not found."); + logger.log(Level.FINE, "Vibrator Service not found."); } } @@ -160,10 +160,10 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { sensorData.sensor = sensorManager.getDefaultSensor(sensorType); if (sensorData.sensor != null) { - logger.log(Level.INFO, "Sensor Type {0} found.", sensorType); + logger.log(Level.FINE, "Sensor Type {0} found.", sensorType); success = registerListener(sensorType); } else { - logger.log(Level.INFO, "Sensor Type {0} not found.", sensorType); + logger.log(Level.FINE, "Sensor Type {0} not found.", sensorType); } if (success) { @@ -177,7 +177,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { SensorData sensorData = sensors.get(sensorType); if (sensorData != null) { if (sensorData.enabled) { - logger.log(Level.INFO, "Sensor Already Active: SensorType: {0}, active: {1}", + logger.log(Level.FINE, "Sensor Already Active: SensorType: {0}, active: {1}", new Object[]{sensorType, sensorData.enabled}); return true; } @@ -185,12 +185,12 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { if (sensorData.sensor != null) { if (sensorManager.registerListener(this, sensorData.sensor, sensorData.androidSensorSpeed)) { sensorData.enabled = true; - logger.log(Level.INFO, "SensorType: {0}, actived: {1}", + logger.log(Level.FINE, "SensorType: {0}, actived: {1}", new Object[]{sensorType, sensorData.enabled}); return true; } else { sensorData.enabled = false; - logger.log(Level.INFO, "Sensor Type {0} activation failed.", sensorType); + logger.log(Level.FINE, "Sensor Type {0} activation failed.", sensorType); } } } @@ -205,7 +205,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { } sensorData.enabled = false; sensorData.haveData = false; - logger.log(Level.INFO, "SensorType: {0} deactivated, active: {1}", + logger.log(Level.FINE, "SensorType: {0} deactivated, active: {1}", new Object[]{sensorType, sensorData.enabled}); } } @@ -261,11 +261,11 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { int yDir = SensorManager.AXIS_Y; int curRotation = getScreenRotation(); if (lastRotation != curRotation) { - logger.log(Level.INFO, "Device Rotation changed to: {0}", curRotation); + logger.log(Level.FINE, "Device Rotation changed to: {0}", curRotation); } lastRotation = curRotation; -// logger.log(Level.INFO, "Screen Rotation: {0}", getScreenRotation()); +// logger.log(Level.FINE, "Screen Rotation: {0}", getScreenRotation()); switch (getScreenRotation()) { // device natural position case Surface.ROTATION_0: @@ -380,7 +380,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { final float [] orientValues = new float[3]; if (remapCoordinates(curRotationMat, rotatedRotationMat)) { SensorManager.getOrientation(rotatedRotationMat, orientValues); -// logger.log(Level.INFO, "Orientation Values: {0}, {1}, {2}", +// logger.log(Level.FINE, "Orientation Values: {0}, {1}, {2}", // new Object[]{orientValues[0], orientValues[1], orientValues[2]}); @@ -414,11 +414,11 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { return true; } else { - logger.log(Level.INFO, "remapCoordinateSystem failed"); + logger.log(Level.FINE, "remapCoordinateSystem failed"); } } else { - logger.log(Level.INFO, "getRotationMatrix returned false"); + logger.log(Level.FINE, "getRotationMatrix returned false"); } return false; @@ -438,7 +438,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { }; final int rumbleRepeatFrom = 0; // index into rumble pattern to repeat from - logger.log(Level.INFO, "Rumble amount: {0}, rumbleOnDur: {1}, rumbleOffDur: {2}", + logger.log(Level.FINE, "Rumble amount: {0}, rumbleOnDur: {1}, rumbleOffDur: {2}", new Object[]{amount, rumbleOnDur, rumbleOffDur}); if (rumbleOnDur > 0) { @@ -470,7 +470,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { List availSensors = sensorManager.getSensorList(Sensor.TYPE_ALL); for (Sensor sensor: availSensors) { - logger.log(Level.INFO, "{0} Sensor is available, Type: {1}, Vendor: {2}, Version: {3}", + logger.log(Level.FINE, "{0} Sensor is available, Type: {1}, Vendor: {2}, Version: {3}", new Object[]{sensor.getName(), sensor.getType(), sensor.getVendor(), sensor.getVersion()}); } @@ -580,7 +580,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { } public void destroy() { - logger.log(Level.INFO, "Doing Destroy."); + logger.log(Level.FINE, "Doing Destroy."); pauseSensors(); if (sensorManager != null) { sensorManager.unregisterListener(this); @@ -660,9 +660,9 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { int sensorType = sensor.getType(); SensorData sensorData = sensors.get(sensorType); if (sensorData != null) { - logger.log(Level.INFO, "onAccuracyChanged for {0}: accuracy: {1}", + logger.log(Level.FINE, "onAccuracyChanged for {0}: accuracy: {1}", new Object[]{sensor.getName(), i}); - logger.log(Level.INFO, "MaxRange: {0}, Resolution: {1}", + logger.log(Level.FINE, "MaxRange: {0}, Resolution: {1}", new Object[]{sensor.getMaximumRange(), sensor.getResolution()}); sensorData.sensorAccuracy = i; } @@ -787,7 +787,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener { public void calibrateCenter() { zeroRawValue = lastRawValue; - logger.log(Level.INFO, "Calibrating axis {0} to {1}", + logger.log(Level.FINE, "Calibrating axis {0} to {1}", new Object[]{getName(), zeroRawValue}); } diff --git a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java index 97587cf30..6cd49ffd9 100644 --- a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java +++ b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java @@ -148,10 +148,10 @@ public class OGLESShaderRenderer implements Renderer { } public void initialize() { - logger.log(Level.INFO, "Vendor: {0}", GLES20.glGetString(GLES20.GL_VENDOR)); - logger.log(Level.INFO, "Renderer: {0}", GLES20.glGetString(GLES20.GL_RENDERER)); - logger.log(Level.INFO, "Version: {0}", GLES20.glGetString(GLES20.GL_VERSION)); - logger.log(Level.INFO, "Shading Language Version: {0}", GLES20.glGetString(GLES20.GL_SHADING_LANGUAGE_VERSION)); + logger.log(Level.FINE, "Vendor: {0}", GLES20.glGetString(GLES20.GL_VENDOR)); + logger.log(Level.FINE, "Renderer: {0}", GLES20.glGetString(GLES20.GL_RENDERER)); + logger.log(Level.FINE, "Version: {0}", GLES20.glGetString(GLES20.GL_VERSION)); + logger.log(Level.FINE, "Shading Language Version: {0}", GLES20.glGetString(GLES20.GL_SHADING_LANGUAGE_VERSION)); powerVr = GLES20.glGetString(GLES20.GL_RENDERER).contains("PowerVR"); @@ -180,14 +180,14 @@ public class OGLESShaderRenderer implements Renderer { GLES20.glGetIntegerv(GLES20.GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, intBuf16); vertexTextureUnits = intBuf16.get(0); - logger.log(Level.INFO, "VTF Units: {0}", vertexTextureUnits); + logger.log(Level.FINE, "VTF Units: {0}", vertexTextureUnits); if (vertexTextureUnits > 0) { caps.add(Caps.VertexTextureFetch); } GLES20.glGetIntegerv(GLES20.GL_MAX_TEXTURE_IMAGE_UNITS, intBuf16); fragTextureUnits = intBuf16.get(0); - logger.log(Level.INFO, "Texture Units: {0}", fragTextureUnits); + logger.log(Level.FINE, "Texture Units: {0}", fragTextureUnits); // Multiply vector count by 4 to get float count. GLES20.glGetIntegerv(GLES20.GL_MAX_VERTEX_UNIFORM_VECTORS, intBuf16); @@ -204,11 +204,11 @@ public class OGLESShaderRenderer implements Renderer { GLES20.glGetIntegerv(GLES20.GL_MAX_VERTEX_ATTRIBS, intBuf16); vertexAttribs = intBuf16.get(0); - logger.log(Level.INFO, "Vertex Attributes: {0}", vertexAttribs); + logger.log(Level.FINE, "Vertex Attributes: {0}", vertexAttribs); GLES20.glGetIntegerv(GLES20.GL_SUBPIXEL_BITS, intBuf16); int subpixelBits = intBuf16.get(0); - logger.log(Level.INFO, "Subpixel Bits: {0}", subpixelBits); + logger.log(Level.FINE, "Subpixel Bits: {0}", subpixelBits); // GLES10.glGetIntegerv(GLES10.GL_MAX_ELEMENTS_VERTICES, intBuf16); // maxVertCount = intBuf16.get(0); @@ -220,11 +220,11 @@ public class OGLESShaderRenderer implements Renderer { GLES20.glGetIntegerv(GLES20.GL_MAX_TEXTURE_SIZE, intBuf16); maxTexSize = intBuf16.get(0); - logger.log(Level.INFO, "Maximum Texture Resolution: {0}", maxTexSize); + logger.log(Level.FINE, "Maximum Texture Resolution: {0}", maxTexSize); GLES20.glGetIntegerv(GLES20.GL_MAX_CUBE_MAP_TEXTURE_SIZE, intBuf16); maxCubeTexSize = intBuf16.get(0); - logger.log(Level.INFO, "Maximum CubeMap Resolution: {0}", maxCubeTexSize); + logger.log(Level.FINE, "Maximum CubeMap Resolution: {0}", maxCubeTexSize); /* if (ctxCaps.GL_ARB_color_buffer_float){ @@ -306,7 +306,7 @@ public class OGLESShaderRenderer implements Renderer { */ String extensions = GLES20.glGetString(GLES20.GL_EXTENSIONS); - logger.log(Level.INFO, "GL_EXTENSIONS: {0}", extensions); + logger.log(Level.FINE, "GL_EXTENSIONS: {0}", extensions); // Get number of compressed formats available. GLES20.glGetIntegerv(GLES20.GL_NUM_COMPRESSED_TEXTURE_FORMATS, intBuf16); @@ -318,7 +318,7 @@ public class OGLESShaderRenderer implements Renderer { // Print compressed formats. for (int i = 0; i < numCompressedFormats; i++) { - logger.log(Level.INFO, "Compressed Texture Formats: {0}", compressedFormats.get(i)); + logger.log(Level.FINE, "Compressed Texture Formats: {0}", compressedFormats.get(i)); } TextureUtil.loadTextureFeatures(extensions); @@ -332,13 +332,13 @@ public class OGLESShaderRenderer implements Renderer { // but for jME3 it doesn't matter since android versions 1.5 and below // are not supported. if (Build.VERSION.SDK_INT >= 9){ - logger.log(Level.INFO, "Force-enabling VBO (Android 2.3 or higher)"); + logger.log(Level.FINE, "Force-enabling VBO (Android 2.3 or higher)"); useVBO = true; } else { useVBO = false; } - logger.log(Level.INFO, "Caps: {0}", caps); + logger.log(Level.FINE, "Caps: {0}", caps); } /** @@ -806,7 +806,7 @@ public class OGLESShaderRenderer implements Renderer { if (compiledOK) { if (infoLog != null) { - logger.log(Level.INFO, "compile success: {0}, {1}", new Object[]{source.getName(), infoLog}); + logger.log(Level.FINE, "compile success: {0}, {1}", new Object[]{source.getName(), infoLog}); } else { logger.log(Level.FINE, "compile success: {0}", source.getName()); } @@ -863,7 +863,7 @@ public class OGLESShaderRenderer implements Renderer { if (linkOK) { if (infoLog != null) { - logger.log(Level.INFO, "shader link success. \n{0}", infoLog); + logger.log(Level.FINE, "shader link success. \n{0}", infoLog); } else { logger.fine("shader link success"); } @@ -1984,7 +1984,7 @@ public class OGLESShaderRenderer implements Renderer { } public void updateVertexArray(Mesh mesh) { - logger.log(Level.INFO, "updateVertexArray({0})", mesh); + logger.log(Level.FINE, "updateVertexArray({0})", mesh); int id = mesh.getId(); /* if (id == -1){ diff --git a/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java b/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java index d7d225324..c7cdc498b 100644 --- a/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java +++ b/engine/src/android/com/jme3/system/android/AndroidConfigChooser.java @@ -216,16 +216,16 @@ public class AndroidConfigChooser implements EGLConfigChooser { num_config)) { throw new IllegalArgumentException("eglChooseConfig#2 failed"); } -// logger.log(Level.INFO, "num_config: {0}", num_config[0]); +// logger.log(Level.FINE, "num_config: {0}", num_config[0]); // -// logger.log(Level.INFO, "There are {0} configurations that match the configAttrs", num_config[0]); -// logger.log(Level.INFO, "All Matching Configs:"); +// logger.log(Level.FINE, "There are {0} configurations that match the configAttrs", num_config[0]); +// logger.log(Level.FINE, "All Matching Configs:"); // for (int i=0; i {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() }); + LOGGER.log(Level.FINE, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() }); if (((Node) object).getParent() == null) { result.attachChild((Spatial) object); } diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/BlenderLoader.java b/engine/src/blender/com/jme3/scene/plugins/blender/BlenderLoader.java index 2c2cfc81d..6913f00de 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/BlenderLoader.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/BlenderLoader.java @@ -92,7 +92,7 @@ public class BlenderLoader extends AbstractBlenderLoader { } else if (object instanceof CameraNode && (blenderKey.getFeaturesToLoad() & FeaturesToLoad.CAMERAS) != 0) { loadingResults.addCamera((CameraNode) object); } else if (object instanceof Node && (blenderKey.getFeaturesToLoad() & FeaturesToLoad.OBJECTS) != 0) { - LOGGER.log(Level.INFO, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() }); + LOGGER.log(Level.FINE, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() }); if (this.isRootObject(loadingResults, (Node)object)) { loadingResults.addObject((Node) object); } diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/BlenderModelLoader.java b/engine/src/blender/com/jme3/scene/plugins/blender/BlenderModelLoader.java index 27fb7219d..e2f7a21b0 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/BlenderModelLoader.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/BlenderModelLoader.java @@ -69,7 +69,7 @@ public class BlenderModelLoader extends BlenderLoader { modelRoot.addLight(((LightNode)object).getLight()); modelRoot.attachChild((LightNode)object); } else if (object instanceof Node && (blenderKey.getFeaturesToLoad() & FeaturesToLoad.OBJECTS) != 0) { - LOGGER.log(Level.INFO, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() }); + LOGGER.log(Level.FINE, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() }); if (((Node) object).getParent() == null) { modelRoot.attachChild((Node)object); } diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/animations/ArmatureHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/animations/ArmatureHelper.java index 2b7655d5c..61bc7b4c4 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/animations/ArmatureHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/animations/ArmatureHelper.java @@ -181,7 +181,7 @@ public class ArmatureHelper extends AbstractBlenderHelper { * file */ private BoneTrack[] getTracks250(Structure actionStructure, Skeleton skeleton, BlenderContext blenderContext) throws BlenderFileException { - LOGGER.log(Level.INFO, "Getting tracks!"); + LOGGER.log(Level.FINE, "Getting tracks!"); IpoHelper ipoHelper = blenderContext.getHelper(IpoHelper.class); int fps = blenderContext.getBlenderKey().getFps(); Structure groups = (Structure) actionStructure.getFieldValue("groups"); @@ -223,7 +223,7 @@ public class ArmatureHelper extends AbstractBlenderHelper { * file */ private BoneTrack[] getTracks249(Structure actionStructure, Skeleton skeleton, BlenderContext blenderContext) throws BlenderFileException { - LOGGER.log(Level.INFO, "Getting tracks!"); + LOGGER.log(Level.FINE, "Getting tracks!"); IpoHelper ipoHelper = blenderContext.getHelper(IpoHelper.class); int fps = blenderContext.getBlenderKey().getFps(); Structure chanbase = (Structure) actionStructure.getFieldValue("chanbase"); diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinitionClampTo.java b/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinitionClampTo.java index a0032036a..08de7fadc 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinitionClampTo.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinitionClampTo.java @@ -21,6 +21,6 @@ import com.jme3.scene.plugins.blender.file.Structure; @Override public void bake(Transform ownerTransform, Transform targetTransform, float influence) { //TODO: implement when curves are implemented - LOGGER.log(Level.INFO, "'Clamp to' not yet implemented!"); + LOGGER.log(Level.WARNING, "'Clamp to' not yet implemented!"); } } diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinitionFollowPath.java b/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinitionFollowPath.java index 51cdb4ee4..0a94d031b 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinitionFollowPath.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinitionFollowPath.java @@ -21,6 +21,6 @@ import com.jme3.scene.plugins.blender.file.Structure; @Override public void bake(Transform ownerTransform, Transform targetTransform, float influence) { //TODO: implement when curves are implemented - LOGGER.log(Level.INFO, "'Follow path' not implemented! Curves not yet implemented!"); + LOGGER.log(Level.WARNING, "'Follow path' not implemented! Curves not yet implemented!"); } } diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialHelper.java index 894e932ad..0eca86089 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialHelper.java @@ -161,14 +161,14 @@ public class MaterialHelper extends AbstractBlenderHelper { * an exception is throw when problems with blend file occur */ public MaterialContext toMaterialContext(Structure structure, BlenderContext blenderContext) throws BlenderFileException { - LOGGER.log(Level.INFO, "Loading material."); + LOGGER.log(Level.FINE, "Loading material."); MaterialContext result = (MaterialContext) blenderContext.getLoadedFeature(structure.getOldMemoryAddress(), LoadedFeatureDataType.LOADED_FEATURE); if (result != null) { return result; } result = new MaterialContext(structure, blenderContext); - LOGGER.log(Level.INFO, "Material''s name: {0}", result.name); + LOGGER.log(Level.FINE, "Material''s name: {0}", result.name); blenderContext.addLoadedFeatures(structure.getOldMemoryAddress(), structure.getName(), structure, result); return result; } diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/objects/ObjectHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/objects/ObjectHelper.java index c4dc55945..2d4ccec7a 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/objects/ObjectHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/objects/ObjectHelper.java @@ -115,7 +115,7 @@ public class ObjectHelper extends AbstractBlenderHelper { //get object data int type = ((Number)objectStructure.getFieldValue("type")).intValue(); String name = objectStructure.getName(); - LOGGER.log(Level.INFO, "Loading obejct: {0}", name); + LOGGER.log(Level.FINE, "Loading obejct: {0}", name); int restrictflag = ((Number)objectStructure.getFieldValue("restrictflag")).intValue(); boolean visible = (restrictflag & 0x01) != 0; @@ -133,7 +133,7 @@ public class ObjectHelper extends AbstractBlenderHelper { try { switch(type) { case OBJECT_TYPE_EMPTY: - LOGGER.log(Level.INFO, "Importing empty."); + LOGGER.log(Level.FINE, "Importing empty."); Node empty = new Node(name); empty.setLocalTransform(t); if(parent instanceof Node) { @@ -142,7 +142,7 @@ public class ObjectHelper extends AbstractBlenderHelper { result = empty; break; case OBJECT_TYPE_MESH: - LOGGER.log(Level.INFO, "Importing mesh."); + LOGGER.log(Level.FINE, "Importing mesh."); Node node = new Node(name); node.setCullHint(visible ? CullHint.Always : CullHint.Inherit); @@ -166,7 +166,7 @@ public class ObjectHelper extends AbstractBlenderHelper { break; case OBJECT_TYPE_SURF: case OBJECT_TYPE_CURVE: - LOGGER.log(Level.INFO, "Importing curve/nurb."); + LOGGER.log(Level.FINE, "Importing curve/nurb."); Pointer pCurve = (Pointer)objectStructure.getFieldValue("data"); if(pCurve.isNotNull()) { CurvesHelper curvesHelper = blenderContext.getHelper(CurvesHelper.class); @@ -180,7 +180,7 @@ public class ObjectHelper extends AbstractBlenderHelper { } break; case OBJECT_TYPE_LAMP: - LOGGER.log(Level.INFO, "Importing lamp."); + LOGGER.log(Level.FINE, "Importing lamp."); Pointer pLamp = (Pointer)objectStructure.getFieldValue("data"); if(pLamp.isNotNull()) { LightHelper lightHelper = blenderContext.getHelper(LightHelper.class); 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 9aad3d781..27f537dd5 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 @@ -501,7 +501,7 @@ public class TextureHelper extends AbstractBlenderHelper { String texturePath = imageStructure.getFieldValue("name").toString(); Pointer pPackedFile = (Pointer) imageStructure.getFieldValue("packedfile"); if (pPackedFile.isNull()) { - LOGGER.log(Level.INFO, "Reading texture from file: {0}", texturePath); + 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!"); diff --git a/engine/src/bullet-common/com/jme3/bullet/control/KinematicRagdollControl.java b/engine/src/bullet-common/com/jme3/bullet/control/KinematicRagdollControl.java index 965dcead5..220f7c55d 100644 --- a/engine/src/bullet-common/com/jme3/bullet/control/KinematicRagdollControl.java +++ b/engine/src/bullet-common/com/jme3/bullet/control/KinematicRagdollControl.java @@ -346,7 +346,7 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision model.setLocalRotation(initRotation); model.setLocalScale(initScale); - logger.log(Level.INFO, "Created physics ragdoll for skeleton {0}", skeleton); + logger.log(Level.FINE, "Created physics ragdoll for skeleton {0}", skeleton); } /** @@ -370,7 +370,7 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision for (int i = 0; i < skeleton.getRoots().length; i++) { Bone childBone = skeleton.getRoots()[i]; if (childBone.getParent() == null) { - logger.log(Level.INFO, "Found root bone in skeleton {0}", skeleton); + logger.log(Level.FINE, "Found root bone in skeleton {0}", skeleton); baseRigidBody = new PhysicsRigidBody(new BoxCollisionShape(Vector3f.UNIT_XYZ.mult(0.1f)), 1); baseRigidBody.setKinematic(mode == Mode.Kinematic); boneRecursion(model, childBone, baseRigidBody, 1, pointsMap); diff --git a/engine/src/bullet-common/com/jme3/bullet/control/ragdoll/RagdollPreset.java b/engine/src/bullet-common/com/jme3/bullet/control/ragdoll/RagdollPreset.java index 070eedf2b..ab0b3ef1a 100644 --- a/engine/src/bullet-common/com/jme3/bullet/control/ragdoll/RagdollPreset.java +++ b/engine/src/bullet-common/com/jme3/bullet/control/ragdoll/RagdollPreset.java @@ -75,12 +75,12 @@ public abstract class RagdollPreset { JointPreset preset = boneMap.get(resultName); if (preset != null && resultScore >= 50) { - logger.log(Level.INFO, "Found matching joint for bone {0} : {1} with score {2}", new Object[]{boneName, resultName, resultScore}); + logger.log(Level.FINE, "Found matching joint for bone {0} : {1} with score {2}", new Object[]{boneName, resultName, resultScore}); preset.setupJoint(joint); } else { - logger.log(Level.INFO, "No joint match found for bone {0}", boneName); + logger.log(Level.FINE, "No joint match found for bone {0}", boneName); if (resultScore > 0) { - logger.log(Level.INFO, "Best match found is {0} with score {1}", new Object[]{resultName, resultScore}); + logger.log(Level.FINE, "Best match found is {0} with score {1}", new Object[]{resultName, resultScore}); } new JointPreset().setupJoint(joint); } diff --git a/engine/src/bullet/com/jme3/bullet/PhysicsSpace.java b/engine/src/bullet/com/jme3/bullet/PhysicsSpace.java index 6d7edf28f..7a5502db6 100644 --- a/engine/src/bullet/com/jme3/bullet/PhysicsSpace.java +++ b/engine/src/bullet/com/jme3/bullet/PhysicsSpace.java @@ -567,17 +567,17 @@ public class PhysicsSpace { private native void removeConstraint(long space, long id); private void addGhostObject(PhysicsGhostObject node) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding ghost object {0} to physics space.", Long.toHexString(node.getObjectId())); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding ghost object {0} to physics space.", Long.toHexString(node.getObjectId())); addCollisionObject(physicsSpaceId, node.getObjectId()); } private void removeGhostObject(PhysicsGhostObject node) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing ghost object {0} from physics space.", Long.toHexString(node.getObjectId())); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing ghost object {0} from physics space.", Long.toHexString(node.getObjectId())); removeCollisionObject(physicsSpaceId, node.getObjectId()); } private void addCharacter(PhysicsCharacter node) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding character {0} to physics space.", Long.toHexString(node.getObjectId())); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding character {0} to physics space.", Long.toHexString(node.getObjectId())); addCharacterObject(physicsSpaceId, node.getObjectId()); addAction(physicsSpaceId, node.getControllerId()); // dynamicsWorld.addCollisionObject(node.getObjectId(), CollisionFilterGroups.CHARACTER_FILTER, (short) (CollisionFilterGroups.STATIC_FILTER | CollisionFilterGroups.DEFAULT_FILTER)); @@ -585,7 +585,7 @@ public class PhysicsSpace { } private void removeCharacter(PhysicsCharacter node) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing character {0} from physics space.", Long.toHexString(node.getObjectId())); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing character {0} from physics space.", Long.toHexString(node.getObjectId())); removeAction(physicsSpaceId, node.getControllerId()); removeCharacterObject(physicsSpaceId, node.getObjectId()); // dynamicsWorld.removeAction(node.getControllerId()); @@ -608,32 +608,32 @@ public class PhysicsSpace { node.setKinematic(true); } - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding RigidBody {0} to physics space.", node.getObjectId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding RigidBody {0} to physics space.", node.getObjectId()); if (node instanceof PhysicsVehicle) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding vehicle constraint {0} to physics space.", Long.toHexString(((PhysicsVehicle) node).getVehicleId())); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding vehicle constraint {0} to physics space.", Long.toHexString(((PhysicsVehicle) node).getVehicleId())); addVehicle(physicsSpaceId, ((PhysicsVehicle) node).getVehicleId()); } } private void removeRigidBody(PhysicsRigidBody node) { if (node instanceof PhysicsVehicle) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing vehicle constraint {0} from physics space.", Long.toHexString(((PhysicsVehicle) node).getVehicleId())); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing vehicle constraint {0} from physics space.", Long.toHexString(((PhysicsVehicle) node).getVehicleId())); removeVehicle(physicsSpaceId, ((PhysicsVehicle) node).getVehicleId()); } - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing RigidBody {0} from physics space.", Long.toHexString(node.getObjectId())); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing RigidBody {0} from physics space.", Long.toHexString(node.getObjectId())); physicsNodes.remove(node.getObjectId()); removeRigidBody(physicsSpaceId, node.getObjectId()); } private void addJoint(PhysicsJoint joint) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding Joint {0} to physics space.", Long.toHexString(joint.getObjectId())); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding Joint {0} to physics space.", Long.toHexString(joint.getObjectId())); physicsJoints.add(joint); addConstraintC(physicsSpaceId, joint.getObjectId(), !joint.isCollisionBetweenLinkedBodys()); // dynamicsWorld.addConstraint(joint.getObjectId(), !joint.isCollisionBetweenLinkedBodys()); } private void removeJoint(PhysicsJoint joint) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing Joint {0} from physics space.", Long.toHexString(joint.getObjectId())); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing Joint {0} from physics space.", Long.toHexString(joint.getObjectId())); physicsJoints.remove(joint); removeConstraint(physicsSpaceId, joint.getObjectId()); // dynamicsWorld.removeConstraint(joint.getObjectId()); @@ -915,7 +915,7 @@ public class PhysicsSpace { @Override protected void finalize() throws Throwable { super.finalize(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing PhysicsSpace {0}", Long.toHexString(physicsSpaceId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing PhysicsSpace {0}", Long.toHexString(physicsSpaceId)); finalizeNative(physicsSpaceId); } diff --git a/engine/src/bullet/com/jme3/bullet/collision/PhysicsCollisionObject.java b/engine/src/bullet/com/jme3/bullet/collision/PhysicsCollisionObject.java index 2f5ac1d35..d411b24a6 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/PhysicsCollisionObject.java +++ b/engine/src/bullet/com/jme3/bullet/collision/PhysicsCollisionObject.java @@ -170,7 +170,7 @@ public abstract class PhysicsCollisionObject implements Savable { } protected void initUserPointer() { - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "initUserPointer() objectId = {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "initUserPointer() objectId = {0}", Long.toHexString(objectId)); initUserPointer(objectId, collisionGroup, collisionGroupsMask); } native void initUserPointer(long objectId, int group, int groups); @@ -316,7 +316,7 @@ public abstract class PhysicsCollisionObject implements Savable { @Override protected void finalize() throws Throwable { super.finalize(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing CollisionObject {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing CollisionObject {0}", Long.toHexString(objectId)); finalizeNative(objectId); } diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/BoxCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/BoxCollisionShape.java index e67149ed8..000bb2dc7 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/BoxCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/BoxCollisionShape.java @@ -80,7 +80,7 @@ public class BoxCollisionShape extends CollisionShape { protected void createShape() { objectId = createShape(halfExtents); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // cShape = new BoxShape(Converter.convert(halfExtents)); setScale(scale); setMargin(margin); diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/CapsuleCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/CapsuleCollisionShape.java index d97e0ea7a..f753286c2 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/CapsuleCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/CapsuleCollisionShape.java @@ -106,7 +106,7 @@ public class CapsuleCollisionShape extends CollisionShape{ protected void createShape(){ objectId = createShape(axis, radius, height); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); setScale(scale); setMargin(margin); // switch(axis){ diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/CollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/CollisionShape.java index ad9615695..c5b390e0e 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/CollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/CollisionShape.java @@ -122,7 +122,7 @@ public abstract class CollisionShape implements Savable { @Override protected void finalize() throws Throwable { super.finalize(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing CollisionShape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing CollisionShape {0}", Long.toHexString(objectId)); finalizeNative(objectId); } diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java index 5780100b4..9faf7f68b 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java @@ -56,7 +56,7 @@ public class CompoundCollisionShape extends CollisionShape { public CompoundCollisionShape() { objectId = createShape();//new CompoundShape(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); } /** diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/ConeCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/ConeCollisionShape.java index 0c1efb389..bed5caaee 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/ConeCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/ConeCollisionShape.java @@ -90,7 +90,7 @@ public class ConeCollisionShape extends CollisionShape { protected void createShape() { objectId = createShape(axis, radius, height); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // if (axis == PhysicsSpace.AXIS_X) { // objectId = new ConeShapeX(radius, height); // } else if (axis == PhysicsSpace.AXIS_Y) { diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/CylinderCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/CylinderCollisionShape.java index d08161940..c4331d209 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/CylinderCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/CylinderCollisionShape.java @@ -98,7 +98,7 @@ public class CylinderCollisionShape extends CollisionShape { protected void createShape() { objectId = createShape(axis, halfExtents); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // switch (axis) { // case 0: // objectId = new CylinderShapeX(Converter.convert(halfExtents)); diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/GImpactCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/GImpactCollisionShape.java index bd39c3b7a..200e6dc3b 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/GImpactCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/GImpactCollisionShape.java @@ -148,9 +148,9 @@ public class GImpactCollisionShape extends CollisionShape { // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); meshId = NativeMeshUtil.createTriangleIndexVertexArray(triangleIndexBase, vertexBase, numTriangles, numVertices, vertexStride, triangleIndexStride); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Mesh {0}", Long.toHexString(meshId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Mesh {0}", Long.toHexString(meshId)); objectId = createShape(meshId); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); setScale(scale); setMargin(margin); } @@ -160,7 +160,7 @@ public class GImpactCollisionShape extends CollisionShape { @Override protected void finalize() throws Throwable { super.finalize(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Mesh {0}", Long.toHexString(meshId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing Mesh {0}", Long.toHexString(meshId)); finalizeNative(meshId); } diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/HeightfieldCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/HeightfieldCollisionShape.java index 760fd7533..e525d3f1c 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/HeightfieldCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/HeightfieldCollisionShape.java @@ -131,7 +131,7 @@ public class HeightfieldCollisionShape extends CollisionShape { } // fbuf.rewind(); objectId = createShape(heightStickWidth, heightStickLength, bbuf, heightScale, minHeight, maxHeight, upAxis, flipQuadEdges); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); setScale(scale); setMargin(margin); } diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/HullCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/HullCollisionShape.java index c5d609724..db40eedac 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/HullCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/HullCollisionShape.java @@ -107,7 +107,7 @@ public class HullCollisionShape extends CollisionShape { } bbuf.rewind(); objectId = createShape(bbuf); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); setScale(scale); setMargin(margin); } diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/MeshCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/MeshCollisionShape.java index b6c11857d..4d68e029a 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/MeshCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/MeshCollisionShape.java @@ -141,9 +141,9 @@ public class MeshCollisionShape extends CollisionShape { // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); meshId = NativeMeshUtil.createTriangleIndexVertexArray(triangleIndexBase, vertexBase, numTriangles, numVertices, vertexStride, triangleIndexStride); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Mesh {0}", Long.toHexString(meshId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Mesh {0}", Long.toHexString(meshId)); objectId = createShape(meshId); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); setScale(scale); setMargin(margin); } @@ -153,7 +153,7 @@ public class MeshCollisionShape extends CollisionShape { @Override protected void finalize() throws Throwable { super.finalize(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Mesh {0}", Long.toHexString(meshId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing Mesh {0}", Long.toHexString(meshId)); finalizeNative(meshId); } diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/PlaneCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/PlaneCollisionShape.java index 1606e7240..caf654899 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/PlaneCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/PlaneCollisionShape.java @@ -79,7 +79,7 @@ public class PlaneCollisionShape extends CollisionShape{ protected void createShape() { objectId = createShape(plane.getNormal(), plane.getConstant()); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // objectId = new StaticPlaneShape(Converter.convert(plane.getNormal()),plane.getConstant()); // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/SimplexCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/SimplexCollisionShape.java index d282cd99b..fff1c7058 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/SimplexCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/SimplexCollisionShape.java @@ -110,7 +110,7 @@ public class SimplexCollisionShape extends CollisionShape { objectId = createShape(vector1); // objectId = new BU_Simplex1to4(Converter.convert(vector1)); } - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); setScale(scale); diff --git a/engine/src/bullet/com/jme3/bullet/collision/shapes/SphereCollisionShape.java b/engine/src/bullet/com/jme3/bullet/collision/shapes/SphereCollisionShape.java index 020107829..55f449e5b 100644 --- a/engine/src/bullet/com/jme3/bullet/collision/shapes/SphereCollisionShape.java +++ b/engine/src/bullet/com/jme3/bullet/collision/shapes/SphereCollisionShape.java @@ -78,7 +78,7 @@ public class SphereCollisionShape extends CollisionShape { protected void createShape() { objectId = createShape(radius); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); // new SphereShape(radius); // objectId.setLocalScaling(Converter.convert(getScale())); // objectId.setMargin(margin); diff --git a/engine/src/bullet/com/jme3/bullet/joints/ConeJoint.java b/engine/src/bullet/com/jme3/bullet/joints/ConeJoint.java index 3dfd24f72..4284e7ad3 100644 --- a/engine/src/bullet/com/jme3/bullet/joints/ConeJoint.java +++ b/engine/src/bullet/com/jme3/bullet/joints/ConeJoint.java @@ -127,7 +127,7 @@ public class ConeJoint extends PhysicsJoint { protected void createJoint() { objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId)); setLimit(objectId, swingSpan1, swingSpan2, twistSpan); setAngularOnly(objectId, angularOnly); } diff --git a/engine/src/bullet/com/jme3/bullet/joints/HingeJoint.java b/engine/src/bullet/com/jme3/bullet/joints/HingeJoint.java index 9a65e68db..2906d7243 100644 --- a/engine/src/bullet/com/jme3/bullet/joints/HingeJoint.java +++ b/engine/src/bullet/com/jme3/bullet/joints/HingeJoint.java @@ -202,7 +202,7 @@ public class HingeJoint extends PhysicsJoint { protected void createJoint() { objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, axisA, pivotB, axisB); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId)); } private native long createJoint(long objectIdA, long objectIdB, Vector3f pivotA, Vector3f axisA, Vector3f pivotB, Vector3f axisB); diff --git a/engine/src/bullet/com/jme3/bullet/joints/PhysicsJoint.java b/engine/src/bullet/com/jme3/bullet/joints/PhysicsJoint.java index d348cad4e..256036ff7 100644 --- a/engine/src/bullet/com/jme3/bullet/joints/PhysicsJoint.java +++ b/engine/src/bullet/com/jme3/bullet/joints/PhysicsJoint.java @@ -139,7 +139,7 @@ public abstract class PhysicsJoint implements Savable { @Override protected void finalize() throws Throwable { super.finalize(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Joint {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing Joint {0}", Long.toHexString(objectId)); finalizeNative(objectId); } diff --git a/engine/src/bullet/com/jme3/bullet/joints/Point2PointJoint.java b/engine/src/bullet/com/jme3/bullet/joints/Point2PointJoint.java index 26478f0ec..312293e99 100644 --- a/engine/src/bullet/com/jme3/bullet/joints/Point2PointJoint.java +++ b/engine/src/bullet/com/jme3/bullet/joints/Point2PointJoint.java @@ -119,7 +119,7 @@ public class Point2PointJoint extends PhysicsJoint { protected void createJoint() { objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, pivotB); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId)); } private native long createJoint(long objectIdA, long objectIdB, Vector3f pivotA, Vector3f pivotB); diff --git a/engine/src/bullet/com/jme3/bullet/joints/SixDofJoint.java b/engine/src/bullet/com/jme3/bullet/joints/SixDofJoint.java index c634114b2..648398149 100644 --- a/engine/src/bullet/com/jme3/bullet/joints/SixDofJoint.java +++ b/engine/src/bullet/com/jme3/bullet/joints/SixDofJoint.java @@ -82,7 +82,7 @@ public class SixDofJoint extends PhysicsJoint { this.rotB = rotB; objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB, useLinearReferenceFrameA); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId)); gatherMotors(); } @@ -97,7 +97,7 @@ public class SixDofJoint extends PhysicsJoint { rotB = new Matrix3f(); objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB, useLinearReferenceFrameA); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId)); gatherMotors(); } @@ -168,7 +168,7 @@ public class SixDofJoint extends PhysicsJoint { InputCapsule capsule = im.getCapsule(this); objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB, useLinearReferenceFrameA); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId)); gatherMotors(); setAngularUpperLimit((Vector3f) capsule.readSavable("angularUpperLimit", new Vector3f(Vector3f.POSITIVE_INFINITY))); diff --git a/engine/src/bullet/com/jme3/bullet/joints/SliderJoint.java b/engine/src/bullet/com/jme3/bullet/joints/SliderJoint.java index 3e5b77ef3..b51c5d849 100644 --- a/engine/src/bullet/com/jme3/bullet/joints/SliderJoint.java +++ b/engine/src/bullet/com/jme3/bullet/joints/SliderJoint.java @@ -530,7 +530,7 @@ public class SliderJoint extends PhysicsJoint { protected void createJoint() { objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB, useLinearReferenceFrameA); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId)); // = new SliderConstraint(nodeA.getObjectId(), nodeB.getObjectId(), transA, transB, useLinearReferenceFrameA); } diff --git a/engine/src/bullet/com/jme3/bullet/objects/PhysicsCharacter.java b/engine/src/bullet/com/jme3/bullet/objects/PhysicsCharacter.java index 5c6176528..0ac13ae9f 100644 --- a/engine/src/bullet/com/jme3/bullet/objects/PhysicsCharacter.java +++ b/engine/src/bullet/com/jme3/bullet/objects/PhysicsCharacter.java @@ -78,17 +78,17 @@ public class PhysicsCharacter extends PhysicsCollisionObject { protected void buildObject() { if (objectId == 0) { objectId = createGhostObject(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Creating GhostObject {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Creating GhostObject {0}", Long.toHexString(objectId)); initUserPointer(); } setCharacterFlags(objectId); attachCollisionShape(objectId, collisionShape.getObjectId()); if (characterId != 0) { - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Clearing Character {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Clearing Character {0}", Long.toHexString(objectId)); finalizeNativeCharacter(characterId); } characterId = createCharacterObject(objectId, collisionShape.getObjectId(), stepHeight); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Creating Character {0}", Long.toHexString(characterId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Creating Character {0}", Long.toHexString(characterId)); } private native long createGhostObject(); diff --git a/engine/src/bullet/com/jme3/bullet/objects/PhysicsGhostObject.java b/engine/src/bullet/com/jme3/bullet/objects/PhysicsGhostObject.java index 77a5b6725..052e280e4 100644 --- a/engine/src/bullet/com/jme3/bullet/objects/PhysicsGhostObject.java +++ b/engine/src/bullet/com/jme3/bullet/objects/PhysicsGhostObject.java @@ -78,7 +78,7 @@ public class PhysicsGhostObject extends PhysicsCollisionObject { if (objectId == 0) { // gObject = new PairCachingGhostObject(); objectId = createGhostObject(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Ghost Object {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Ghost Object {0}", Long.toHexString(objectId)); setGhostFlags(objectId); initUserPointer(); } diff --git a/engine/src/bullet/com/jme3/bullet/objects/PhysicsRigidBody.java b/engine/src/bullet/com/jme3/bullet/objects/PhysicsRigidBody.java index f45a1de1f..514d180c5 100644 --- a/engine/src/bullet/com/jme3/bullet/objects/PhysicsRigidBody.java +++ b/engine/src/bullet/com/jme3/bullet/objects/PhysicsRigidBody.java @@ -98,12 +98,12 @@ public class PhysicsRigidBody extends PhysicsCollisionObject { PhysicsSpace.getPhysicsSpace().remove(this); removed = true; } - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Clearing RigidBody {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Clearing RigidBody {0}", Long.toHexString(objectId)); finalizeNative(objectId); } preRebuild(); objectId = createRigidBody(mass, motionState.getObjectId(), collisionShape.getObjectId()); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created RigidBody {0}", Long.toHexString(objectId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created RigidBody {0}", Long.toHexString(objectId)); postRebuild(); if (removed) { PhysicsSpace.getPhysicsSpace().add(this); diff --git a/engine/src/bullet/com/jme3/bullet/objects/PhysicsVehicle.java b/engine/src/bullet/com/jme3/bullet/objects/PhysicsVehicle.java index f1ab936aa..cfeed160d 100644 --- a/engine/src/bullet/com/jme3/bullet/objects/PhysicsVehicle.java +++ b/engine/src/bullet/com/jme3/bullet/objects/PhysicsVehicle.java @@ -126,14 +126,14 @@ public class PhysicsVehicle extends PhysicsRigidBody { throw new IllegalStateException("Physics space is not initialized!"); } if (rayCasterId != 0) { - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Clearing RayCaster {0}", Long.toHexString(rayCasterId)); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Clearing Vehicle {0}", Long.toHexString(vehicleId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Clearing RayCaster {0}", Long.toHexString(rayCasterId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Clearing Vehicle {0}", Long.toHexString(vehicleId)); finalizeNative(rayCasterId, vehicleId); } rayCasterId = createVehicleRaycaster(objectId, space.getSpaceId()); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created RayCaster {0}", Long.toHexString(rayCasterId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created RayCaster {0}", Long.toHexString(rayCasterId)); vehicleId = createRaycastVehicle(objectId, rayCasterId); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Vehicle {0}", Long.toHexString(vehicleId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Vehicle {0}", Long.toHexString(vehicleId)); setCoordinateSystem(vehicleId, 0, 1, 2); for (VehicleWheel wheel : wheels) { wheel.setVehicleId(vehicleId, addWheel(vehicleId, wheel.getLocation(), wheel.getDirection(), wheel.getAxle(), wheel.getRestLength(), wheel.getRadius(), tuning, wheel.isFrontWheel())); @@ -575,8 +575,8 @@ public class PhysicsVehicle extends PhysicsRigidBody { @Override protected void finalize() throws Throwable { super.finalize(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing RayCaster {0}", Long.toHexString(rayCasterId)); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Vehicle {0}", Long.toHexString(vehicleId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing RayCaster {0}", Long.toHexString(rayCasterId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing Vehicle {0}", Long.toHexString(vehicleId)); finalizeNative(rayCasterId, vehicleId); } diff --git a/engine/src/bullet/com/jme3/bullet/objects/infos/RigidBodyMotionState.java b/engine/src/bullet/com/jme3/bullet/objects/infos/RigidBodyMotionState.java index 934bf36d3..3406e7ae5 100644 --- a/engine/src/bullet/com/jme3/bullet/objects/infos/RigidBodyMotionState.java +++ b/engine/src/bullet/com/jme3/bullet/objects/infos/RigidBodyMotionState.java @@ -56,7 +56,7 @@ public class RigidBodyMotionState { public RigidBodyMotionState() { this.motionStateId = createMotionState(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created MotionState {0}", Long.toHexString(motionStateId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created MotionState {0}", Long.toHexString(motionStateId)); } private native long createMotionState(); @@ -155,7 +155,7 @@ public class RigidBodyMotionState { @Override protected void finalize() throws Throwable { super.finalize(); - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing MotionState {0}", Long.toHexString(motionStateId)); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing MotionState {0}", Long.toHexString(motionStateId)); finalizeNative(motionStateId); } diff --git a/engine/src/core-effects/com/jme3/post/filters/TranslucentBucketFilter.java b/engine/src/core-effects/com/jme3/post/filters/TranslucentBucketFilter.java index 242d9122d..b5b76c579 100644 --- a/engine/src/core-effects/com/jme3/post/filters/TranslucentBucketFilter.java +++ b/engine/src/core-effects/com/jme3/post/filters/TranslucentBucketFilter.java @@ -169,12 +169,12 @@ public final class TranslucentBucketFilter extends Filter { emitter.getMaterial().setTexture("DepthTexture", processor.getDepthTexture()); emitter.setQueueBucket(RenderQueue.Bucket.Translucent); - logger.log(Level.INFO, "Made particle Emitter {0} soft.", emitter.getName()); + logger.log(Level.FINE, "Made particle Emitter {0} soft.", emitter.getName()); } else { emitter.getMaterial().clearParam("DepthTexture"); emitter.getMaterial().selectTechnique("Default", renderManager); // emitter.setQueueBucket(RenderQueue.Bucket.Transparent); - logger.log(Level.INFO, "Particle Emitter {0} is not soft anymore.", emitter.getName()); + logger.log(Level.FINE, "Particle Emitter {0} is not soft anymore.", emitter.getName()); } } } 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 69d5279c5..64a2d6f28 100644 --- a/engine/src/core-plugins/com/jme3/export/binary/BinaryExporter.java +++ b/engine/src/core-plugins/com/jme3/export/binary/BinaryExporter.java @@ -288,11 +288,11 @@ public class BinaryExporter implements JmeExporter { if (debug ) { logger.info("Stats:"); - logger.log(Level.INFO, "classes: {0}", classNum); - logger.log(Level.INFO, "class table: {0} bytes", classTableSize); - logger.log(Level.INFO, "objects: {0}", numLocations); - logger.log(Level.INFO, "location table: {0} bytes", locationTableSize); - logger.log(Level.INFO, "data: {0} bytes", location); + logger.log(Level.FINE, "classes: {0}", classNum); + logger.log(Level.FINE, "class table: {0} bytes", classTableSize); + logger.log(Level.FINE, "objects: {0}", numLocations); + logger.log(Level.FINE, "location table: {0} bytes", locationTableSize); + logger.log(Level.FINE, "data: {0} bytes", location); } return true; 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 afa843c00..a0d4c9541 100644 --- a/engine/src/core-plugins/com/jme3/export/binary/BinaryImporter.java +++ b/engine/src/core-plugins/com/jme3/export/binary/BinaryImporter.java @@ -242,9 +242,9 @@ public final class BinaryImporter implements JmeImporter { Savable rVal = readObject(id); if (debug) { logger.info("Importer Stats: "); - logger.log(Level.INFO, "Tags: {0}", numClasses); - logger.log(Level.INFO, "Objects: {0}", numLocs); - logger.log(Level.INFO, "Data Size: {0}", dataArray.length); + logger.log(Level.FINE, "Tags: {0}", numClasses); + logger.log(Level.FINE, "Objects: {0}", numLocs); + logger.log(Level.FINE, "Data Size: {0}", dataArray.length); } dataArray = null; return rVal; diff --git a/engine/src/core/com/jme3/app/state/ScreenshotAppState.java b/engine/src/core/com/jme3/app/state/ScreenshotAppState.java index b9fa65347..740c2f303 100644 --- a/engine/src/core/com/jme3/app/state/ScreenshotAppState.java +++ b/engine/src/core/com/jme3/app/state/ScreenshotAppState.java @@ -167,7 +167,7 @@ public class ScreenshotAppState extends AbstractAppState implements ActionListen } else { file = new File(filePath + appName + shotIndex + ".png").getAbsoluteFile(); } - logger.log(Level.INFO, "Saving ScreenShot to: {0}", file.getAbsolutePath()); + logger.log(Level.FINE, "Saving ScreenShot to: {0}", file.getAbsolutePath()); OutputStream outStream = null; try { diff --git a/engine/src/core/com/jme3/asset/cache/WeakRefAssetCache.java b/engine/src/core/com/jme3/asset/cache/WeakRefAssetCache.java index 6902a301e..672412870 100644 --- a/engine/src/core/com/jme3/asset/cache/WeakRefAssetCache.java +++ b/engine/src/core/com/jme3/asset/cache/WeakRefAssetCache.java @@ -81,7 +81,7 @@ public class WeakRefAssetCache implements AssetCache { } } if (removedAssets >= 1) { - logger.log(Level.INFO, "WeakRefAssetCache: {0} assets were purged from the cache.", removedAssets); + logger.log(Level.FINE, "WeakRefAssetCache: {0} assets were purged from the cache.", removedAssets); } } diff --git a/engine/src/core/com/jme3/asset/cache/WeakRefCloneAssetCache.java b/engine/src/core/com/jme3/asset/cache/WeakRefCloneAssetCache.java index 80fcea739..46ddfd199 100644 --- a/engine/src/core/com/jme3/asset/cache/WeakRefCloneAssetCache.java +++ b/engine/src/core/com/jme3/asset/cache/WeakRefCloneAssetCache.java @@ -116,7 +116,7 @@ public class WeakRefCloneAssetCache implements AssetCache { } } if (removedAssets >= 1) { - logger.log(Level.INFO, "WeakRefAssetCache: {0} assets were purged from the cache.", removedAssets); + logger.log(Level.FINE, "WeakRefAssetCache: {0} assets were purged from the cache.", removedAssets); } } diff --git a/engine/src/core/com/jme3/input/JoystickCompatibilityMappings.java b/engine/src/core/com/jme3/input/JoystickCompatibilityMappings.java index c59ade003..60a4e126f 100644 --- a/engine/src/core/com/jme3/input/JoystickCompatibilityMappings.java +++ b/engine/src/core/com/jme3/input/JoystickCompatibilityMappings.java @@ -106,7 +106,7 @@ public class JoystickCompatibilityMappings { * used instead. */ public static void addMapping( String stickName, String sourceComponentId, String remapId ) { - logger.log(Level.INFO, "addMapping(" + stickName + ", " + sourceComponentId + ", " + remapId + ")" ); + logger.log(Level.FINE, "addMapping(" + stickName + ", " + sourceComponentId + ", " + remapId + ")" ); getMappings(stickName, true).put( sourceComponentId, remapId ); } @@ -139,7 +139,7 @@ public class JoystickCompatibilityMappings { * specified by the given URL. */ public static void loadMappingProperties( URL u ) throws IOException { - logger.log(Level.INFO, "Loading mapping properties:{0}", u); + logger.log(Level.FINE, "Loading mapping properties:{0}", u); InputStream in = u.openStream(); try { Properties p = new Properties(); @@ -151,7 +151,7 @@ public class JoystickCompatibilityMappings { } protected static void loadMappings( ClassLoader cl, String path ) throws IOException { - logger.log(Level.INFO, "Searching for mappings for path:{0}", path); + logger.log(Level.FINE, "Searching for mappings for path:{0}", path); for( Enumeration en = cl.getResources(path); en.hasMoreElements(); ) { URL u = en.nextElement(); try { diff --git a/engine/src/core/com/jme3/material/MaterialDef.java b/engine/src/core/com/jme3/material/MaterialDef.java index db826f879..374e257de 100644 --- a/engine/src/core/com/jme3/material/MaterialDef.java +++ b/engine/src/core/com/jme3/material/MaterialDef.java @@ -72,7 +72,7 @@ public class MaterialDef { techniques = new HashMap(); matParams = new HashMap(); defaultTechs = new ArrayList(); - logger.log(Level.INFO, "Loaded material definition: {0}", name); + logger.log(Level.FINE, "Loaded material definition: {0}", name); } /** diff --git a/engine/src/core/com/jme3/math/Eigen3f.java b/engine/src/core/com/jme3/math/Eigen3f.java index a58347b71..b43731bad 100644 --- a/engine/src/core/com/jme3/math/Eigen3f.java +++ b/engine/src/core/com/jme3/math/Eigen3f.java @@ -384,7 +384,7 @@ public class Eigen3f implements java.io.Serializable { logger.info("eigenvalues = "); for (int i = 0; i < 3; i++) - logger.log(Level.INFO, "{0} ", eigenSystem.getEigenValue(i)); + logger.log(Level.FINE, "{0} ", eigenSystem.getEigenValue(i)); logger.info("eigenvectors = "); for (int i = 0; i < 3; i++) { diff --git a/engine/src/core/com/jme3/renderer/Camera.java b/engine/src/core/com/jme3/renderer/Camera.java index 7e54a993c..a714d7a6c 100644 --- a/engine/src/core/com/jme3/renderer/Camera.java +++ b/engine/src/core/com/jme3/renderer/Camera.java @@ -246,7 +246,7 @@ public class Camera implements Savable, Cloneable { onViewPortChange(); onFrameChange(); - logger.log(Level.INFO, "Camera created (W: {0}, H: {1})", new Object[]{width, height}); + logger.log(Level.FINE, "Camera created (W: {0}, H: {1})", new Object[]{width, height}); } @Override diff --git a/engine/src/core/com/jme3/scene/BatchNode.java b/engine/src/core/com/jme3/scene/BatchNode.java index 60d39f02c..f1dfca402 100644 --- a/engine/src/core/com/jme3/scene/BatchNode.java +++ b/engine/src/core/com/jme3/scene/BatchNode.java @@ -236,7 +236,7 @@ public class BatchNode extends Node implements Savable { } - logger.log(Level.INFO, "Batched {0} geometries in {1} batches.", new Object[]{nbGeoms, batches.size()}); + logger.log(Level.FINE, "Batched {0} geometries in {1} batches.", new Object[]{nbGeoms, batches.size()}); //init temp float arrays diff --git a/engine/src/core/com/jme3/scene/Node.java b/engine/src/core/com/jme3/scene/Node.java index 76b7f30da..b3e0b94cf 100644 --- a/engine/src/core/com/jme3/scene/Node.java +++ b/engine/src/core/com/jme3/scene/Node.java @@ -247,8 +247,8 @@ public class Node extends Spatial implements Savable { // transform update down the tree- child.setTransformRefresh(); child.setLightListRefresh(); - if (logger.isLoggable(Level.INFO)) { - logger.log(Level.INFO,"Child ({0}) attached to this node ({1})", + if (logger.isLoggable(Level.FINE)) { + logger.log(Level.FINE,"Child ({0}) attached to this node ({1})", new Object[]{child.getName(), getName()}); } } @@ -281,8 +281,8 @@ public class Node extends Spatial implements Savable { children.add(index, child); child.setTransformRefresh(); child.setLightListRefresh(); - if (logger.isLoggable(Level.INFO)) { - logger.log(Level.INFO,"Child ({0}) attached to this node ({1})", + if (logger.isLoggable(Level.FINE)) { + logger.log(Level.FINE,"Child ({0}) attached to this node ({1})", new Object[]{child.getName(), getName()}); } } @@ -349,7 +349,7 @@ public class Node extends Spatial implements Savable { Spatial child = children.remove(index); if ( child != null ) { child.setParent( null ); - logger.log(Level.INFO, "{0}: Child removed.", this.toString()); + logger.log(Level.FINE, "{0}: Child removed.", this.toString()); // since a child with a bound was detached; // our own bound will probably change. @@ -374,7 +374,7 @@ public class Node extends Spatial implements Savable { for ( int i = children.size() - 1; i >= 0; i-- ) { detachChildAt(i); } - logger.log(Level.INFO, "{0}: All children removed.", this.toString()); + logger.log(Level.FINE, "{0}: All children removed.", this.toString()); } /** diff --git a/engine/src/core/com/jme3/system/JmeSystemDelegate.java b/engine/src/core/com/jme3/system/JmeSystemDelegate.java index bcc3b7169..3dcfcb1c7 100644 --- a/engine/src/core/com/jme3/system/JmeSystemDelegate.java +++ b/engine/src/core/com/jme3/system/JmeSystemDelegate.java @@ -83,9 +83,9 @@ public abstract class JmeSystemDelegate { break; } if (storageFolder != null) { - logger.log(Level.INFO, "Storage Folder Path: {0}", storageFolder.getAbsolutePath()); + logger.log(Level.FINE, "Storage Folder Path: {0}", storageFolder.getAbsolutePath()); } else { - logger.log(Level.INFO, "Storage Folder not found!"); + logger.log(Level.FINE, "Storage Folder not found!"); } return storageFolder; } diff --git a/engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java b/engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java index cf9dfa8e4..85c8cb7f6 100644 --- a/engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java +++ b/engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java @@ -123,7 +123,7 @@ public class VideoRecorderAppState extends AbstractAppState { public VideoRecorderAppState(File file, float quality) { this.file = file; this.quality = quality; - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "JME3 VideoRecorder running on {0} CPU's", numCpus); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "JME3 VideoRecorder running on {0} CPU's", numCpus); } /** @@ -135,7 +135,7 @@ public class VideoRecorderAppState extends AbstractAppState { this.file = file; this.quality = quality; this.framerate = framerate; - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "JME3 VideoRecorder running on {0} CPU's", numCpus); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "JME3 VideoRecorder running on {0} CPU's", numCpus); } public File getFile() { diff --git a/engine/src/desktop/com/jme3/input/awt/AwtMouseInput.java b/engine/src/desktop/com/jme3/input/awt/AwtMouseInput.java index a66f21474..501530699 100644 --- a/engine/src/desktop/com/jme3/input/awt/AwtMouseInput.java +++ b/engine/src/desktop/com/jme3/input/awt/AwtMouseInput.java @@ -36,6 +36,8 @@ import com.jme3.input.MouseInput; import com.jme3.input.RawInputListener; import com.jme3.input.event.MouseButtonEvent; import com.jme3.input.event.MouseMotionEvent; +import com.jme3.system.JmeSystem; +import com.jme3.system.Platform; import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; @@ -141,6 +143,10 @@ public class AwtMouseInput implements MouseInput, MouseListener, MouseWheelListe } public void setCursorVisible(boolean visible) { +// if(JmeSystem.getPlatform() != Platform.MacOSX32 && +// JmeSystem.getPlatform() != Platform.MacOSX64 && +// JmeSystem.getPlatform() != Platform.MacOSX_PPC32 && +// JmeSystem.getPlatform() != Platform.MacOSX_PPC64){ if (this.visible != visible) { lastKnownLocation.x = lastKnownLocation.y = 0; @@ -154,6 +160,7 @@ public class AwtMouseInput implements MouseInput, MouseListener, MouseWheelListe } } }); +// } } } diff --git a/engine/src/desktop/com/jme3/system/JmeDesktopSystem.java b/engine/src/desktop/com/jme3/system/JmeDesktopSystem.java index 7bcd1c261..69b44fc84 100644 --- a/engine/src/desktop/com/jme3/system/JmeDesktopSystem.java +++ b/engine/src/desktop/com/jme3/system/JmeDesktopSystem.java @@ -305,7 +305,7 @@ public class JmeDesktopSystem extends JmeSystemDelegate { } catch (SecurityException ex) { logger.log(Level.SEVERE, "Security error in creating log file", ex); } - logger.log(Level.INFO, "Running on {0}", getFullName()); + logger.log(Level.FINE, "Running on {0}", getFullName()); if (!lowPermissions) { try { diff --git a/engine/src/desktop/com/jme3/system/Natives.java b/engine/src/desktop/com/jme3/system/Natives.java index 768d0e699..e528aadcc 100644 --- a/engine/src/desktop/com/jme3/system/Natives.java +++ b/engine/src/desktop/com/jme3/system/Natives.java @@ -233,7 +233,7 @@ public final class Natives { String libraryPath = getExtractionDir().toString(); if (needLWJGL) { - logger.log(Level.INFO, "Extraction Directory: {0}", getExtractionDir().toString()); + logger.log(Level.FINE, "Extraction Directory: {0}", getExtractionDir().toString()); // LWJGL supports this feature where // it can load libraries from this path. diff --git a/engine/src/jbullet/com/jme3/bullet/PhysicsSpace.java b/engine/src/jbullet/com/jme3/bullet/PhysicsSpace.java index de910b10e..e0d1ee22c 100644 --- a/engine/src/jbullet/com/jme3/bullet/PhysicsSpace.java +++ b/engine/src/jbullet/com/jme3/bullet/PhysicsSpace.java @@ -515,24 +515,24 @@ public class PhysicsSpace { } private void addGhostObject(PhysicsGhostObject node) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding ghost object {0} to physics space.", node.getObjectId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding ghost object {0} to physics space.", node.getObjectId()); dynamicsWorld.addCollisionObject(node.getObjectId()); } private void removeGhostObject(PhysicsGhostObject node) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing ghost object {0} from physics space.", node.getObjectId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing ghost object {0} from physics space.", node.getObjectId()); dynamicsWorld.removeCollisionObject(node.getObjectId()); } private void addCharacter(PhysicsCharacter node) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding character {0} to physics space.", node.getObjectId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding character {0} to physics space.", node.getObjectId()); // dynamicsWorld.addCollisionObject(node.getObjectId()); dynamicsWorld.addCollisionObject(node.getObjectId(), CollisionFilterGroups.CHARACTER_FILTER, (short) (CollisionFilterGroups.STATIC_FILTER | CollisionFilterGroups.DEFAULT_FILTER)); dynamicsWorld.addAction(node.getControllerId()); } private void removeCharacter(PhysicsCharacter node) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing character {0} from physics space.", node.getObjectId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing character {0} from physics space.", node.getObjectId()); dynamicsWorld.removeAction(node.getControllerId()); dynamicsWorld.removeCollisionObject(node.getObjectId()); } @@ -553,9 +553,9 @@ public class PhysicsSpace { node.setKinematic(true); } - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding RigidBody {0} to physics space.", node.getObjectId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding RigidBody {0} to physics space.", node.getObjectId()); if (node instanceof PhysicsVehicle) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding vehicle constraint {0} to physics space.", ((PhysicsVehicle) node).getVehicleId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding vehicle constraint {0} to physics space.", ((PhysicsVehicle) node).getVehicleId()); ((PhysicsVehicle) node).createVehicle(this); dynamicsWorld.addVehicle(((PhysicsVehicle) node).getVehicleId()); } @@ -563,22 +563,22 @@ public class PhysicsSpace { private void removeRigidBody(PhysicsRigidBody node) { if (node instanceof PhysicsVehicle) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing vehicle constraint {0} from physics space.", ((PhysicsVehicle) node).getVehicleId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing vehicle constraint {0} from physics space.", ((PhysicsVehicle) node).getVehicleId()); dynamicsWorld.removeVehicle(((PhysicsVehicle) node).getVehicleId()); } - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing RigidBody {0} from physics space.", node.getObjectId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing RigidBody {0} from physics space.", node.getObjectId()); physicsNodes.remove(node.getObjectId()); dynamicsWorld.removeRigidBody(node.getObjectId()); } private void addJoint(PhysicsJoint joint) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding Joint {0} to physics space.", joint.getObjectId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding Joint {0} to physics space.", joint.getObjectId()); physicsJoints.add(joint); dynamicsWorld.addConstraint(joint.getObjectId(), !joint.isCollisionBetweenLinkedBodys()); } private void removeJoint(PhysicsJoint joint) { - Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing Joint {0} from physics space.", joint.getObjectId()); + Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing Joint {0} from physics space.", joint.getObjectId()); physicsJoints.remove(joint); dynamicsWorld.removeConstraint(joint.getObjectId()); } diff --git a/engine/src/jogg/com/jme3/audio/plugins/CachedOggStream.java b/engine/src/jogg/com/jme3/audio/plugins/CachedOggStream.java index 4e759196c..956d4af51 100644 --- a/engine/src/jogg/com/jme3/audio/plugins/CachedOggStream.java +++ b/engine/src/jogg/com/jme3/audio/plugins/CachedOggStream.java @@ -72,7 +72,7 @@ public class CachedOggStream implements PhysicalOggStream { readOggNextPage(); } long dt = System.nanoTime() - time; - Logger.getLogger(CachedOggStream.class.getName()).log(Level.INFO, "Took {0} ms to load OGG", dt/1000000); + Logger.getLogger(CachedOggStream.class.getName()).log(Level.FINE, "Took {0} ms to load OGG", dt/1000000); } public OggPage getLastOggPage() { diff --git a/engine/src/jogl/com/jme3/audio/joal/JoalAudioRenderer.java b/engine/src/jogl/com/jme3/audio/joal/JoalAudioRenderer.java index 4c844982a..93637a907 100644 --- a/engine/src/jogl/com/jme3/audio/joal/JoalAudioRenderer.java +++ b/engine/src/jogl/com/jme3/audio/joal/JoalAudioRenderer.java @@ -196,7 +196,7 @@ public class JoalAudioRenderer implements AudioRenderer, Runnable { ib = BufferUtils.createIntBuffer(channels.length); chanSrcs = new AudioNode[channels.length]; - logger.log(Level.INFO, "AudioRenderer supports {0} channels", channels.length); + logger.log(Level.FINE, "AudioRenderer supports {0} channels", channels.length); supportEfx = alc.alcIsExtensionPresent(device, "ALC_EXT_EFX"); if (supportEfx) { @@ -206,11 +206,11 @@ public class JoalAudioRenderer implements AudioRenderer, Runnable { ib.position(0).limit(1); alc.alcGetIntegerv(device, AL.ALC_EFX_MINOR_VERSION, 1, ib); int minor = ib.get(0); - logger.log(Level.INFO, "Audio effect extension version: {0}.{1}", new Object[]{major, minor}); + logger.log(Level.FINE, "Audio effect extension version: {0}.{1}", new Object[]{major, minor}); alc.alcGetIntegerv(device, AL.ALC_MAX_AUXILIARY_SENDS, 1, ib); auxSends = ib.get(0); - logger.log(Level.INFO, "Audio max auxilary sends: {0}", auxSends); + logger.log(Level.FINE, "Audio max auxilary sends: {0}", auxSends); // create slot ib.position(0).limit(1); diff --git a/engine/src/jogl/com/jme3/renderer/jogl/JoglGL1Renderer.java b/engine/src/jogl/com/jme3/renderer/jogl/JoglGL1Renderer.java index 36e1f2b38..b2a9f8957 100644 --- a/engine/src/jogl/com/jme3/renderer/jogl/JoglGL1Renderer.java +++ b/engine/src/jogl/com/jme3/renderer/jogl/JoglGL1Renderer.java @@ -155,14 +155,14 @@ public class JoglGL1Renderer implements GL1Renderer { } public void resetGLObjects() { - logger.log(Level.INFO, "Reseting objects and invalidating state"); + logger.log(Level.FINE, "Reseting objects and invalidating state"); objManager.resetObjects(); statistics.clearMemory(); invalidateState(); } public void cleanup() { - logger.log(Level.INFO, "Deleting objects and invalidating state"); + logger.log(Level.FINE, "Deleting objects and invalidating state"); objManager.deleteAllObjects(this); statistics.clearMemory(); invalidateState(); diff --git a/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java b/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java index a40c7a4a1..76edcef57 100644 --- a/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java +++ b/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java @@ -140,9 +140,9 @@ public class JoglRenderer implements Renderer { public void initialize() { GL gl = GLContext.getCurrentGL(); - //logger.log(Level.INFO, "Vendor: {0}", gl.glGetString(GL.GL_VENDOR)); - //logger.log(Level.INFO, "Renderer: {0}", gl.glGetString(GL.GL_RENDERER)); - //logger.log(Level.INFO, "Version: {0}", gl.glGetString(GL.GL_VERSION)); + //logger.log(Level.FINE, "Vendor: {0}", gl.glGetString(GL.GL_VENDOR)); + //logger.log(Level.FINE, "Renderer: {0}", gl.glGetString(GL.GL_RENDERER)); + //logger.log(Level.FINE, "Version: {0}", gl.glGetString(GL.GL_VERSION)); if (gl.isExtensionAvailable("GL_VERSION_2_0")) { caps.add(Caps.OpenGL20); if (gl.isExtensionAvailable("GL_VERSION_2_1")) { @@ -398,7 +398,7 @@ public class JoglRenderer implements Renderer { caps.add(Caps.Multisample); } - logger.log(Level.INFO, "Caps: {0}", caps); + logger.log(Level.FINE, "Caps: {0}", caps); } public void invalidateState() { @@ -414,14 +414,14 @@ public class JoglRenderer implements Renderer { } public void resetGLObjects() { - logger.log(Level.INFO, "Reseting objects and invalidating state"); + logger.log(Level.FINE, "Reseting objects and invalidating state"); objManager.resetObjects(); statistics.clearMemory(); invalidateState(); } public void cleanup() { - logger.log(Level.INFO, "Deleting objects and invalidating state"); + logger.log(Level.FINE, "Deleting objects and invalidating state"); objManager.deleteAllObjects(this); statistics.clearMemory(); invalidateState(); @@ -811,7 +811,7 @@ public class JoglRenderer implements Renderer { if (loc < 0) { uniform.setLocation(-1); // uniform is not declared in shader - logger.log(Level.INFO, "Uniform {0} is not declared in shader {1}.", new Object[]{uniform.getName(), shader.getSources()}); + logger.log(Level.FINE, "Uniform {0} is not declared in shader {1}.", new Object[]{uniform.getName(), shader.getSources()}); } else { uniform.setLocation(loc); @@ -1043,7 +1043,7 @@ public class JoglRenderer implements Renderer { if (compiledOK) { if (infoLog != null) { - logger.log(Level.INFO, "{0} compile success\n{1}", + logger.log(Level.FINE, "{0} compile success\n{1}", new Object[]{source.getName(), infoLog}); } else { logger.log(Level.FINE, "{0} compile success", source.getName()); @@ -1116,7 +1116,7 @@ public class JoglRenderer implements Renderer { if (linkOK) { if (infoLog != null) { - logger.log(Level.INFO, "shader link success. \n{0}", infoLog); + logger.log(Level.FINE, "shader link success. \n{0}", infoLog); } else { logger.fine("shader link success"); } diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java b/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java index 3f0e19ec5..f7da75184 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java +++ b/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java @@ -223,7 +223,7 @@ public class JoglDisplay extends JoglAbstractDisplay { } }); - logger.log(Level.INFO, "Selected display mode: {0}x{1}x{2} @{3}", + logger.log(Level.FINE, "Selected display mode: {0}x{1}x{2} @{3}", new Object[]{gd.getDisplayMode().getWidth(), gd.getDisplayMode().getHeight(), gd.getDisplayMode().getBitDepth(), diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglNewtDisplay.java b/engine/src/jogl/com/jme3/system/jogl/JoglNewtDisplay.java index 5498fb7c3..063ca68d7 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglNewtDisplay.java +++ b/engine/src/jogl/com/jme3/system/jogl/JoglNewtDisplay.java @@ -134,7 +134,7 @@ public class JoglNewtDisplay extends JoglNewtAbstractDisplay { } ScreenMode currentScreenMode = screen.getCurrentScreenMode(); - logger.log(Level.INFO, "Selected display mode: {0}x{1}x{2} @{3}", + logger.log(Level.FINE, "Selected display mode: {0}x{1}x{2} @{3}", new Object[]{currentScreenMode.getRotatedWidth(), currentScreenMode.getRotatedHeight(), currentScreenMode.getMonitorMode().getSurfaceSize().getBitsPerPixel(), diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglOffscreenBuffer.java b/engine/src/jogl/com/jme3/system/jogl/JoglOffscreenBuffer.java index 006334bf8..40ec72855 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglOffscreenBuffer.java +++ b/engine/src/jogl/com/jme3/system/jogl/JoglOffscreenBuffer.java @@ -121,7 +121,7 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable { } public void run(){ - logger.log(Level.INFO, "Using JOGL {0}", NewtVersion.getInstance().getImplementationVersion()); + logger.log(Level.FINE, "Using JOGL {0}", NewtVersion.getInstance().getImplementationVersion()); initInThread(); while (!needClose.get()){ runLoop(); diff --git a/engine/src/lwjgl/com/jme3/audio/lwjgl/LwjglAudioRenderer.java b/engine/src/lwjgl/com/jme3/audio/lwjgl/LwjglAudioRenderer.java index 0223ff62a..e995ae609 100644 --- a/engine/src/lwjgl/com/jme3/audio/lwjgl/LwjglAudioRenderer.java +++ b/engine/src/lwjgl/com/jme3/audio/lwjgl/LwjglAudioRenderer.java @@ -180,7 +180,7 @@ public class LwjglAudioRenderer implements AudioRenderer, Runnable { ib = BufferUtils.createIntBuffer(channels.length); chanSrcs = new AudioNode[channels.length]; - logger.log(Level.INFO, "AudioRenderer supports {0} channels", channels.length); + logger.log(Level.FINE, "AudioRenderer supports {0} channels", channels.length); supportEfx = ALC10.alcIsExtensionPresent(device, "ALC_EXT_EFX"); if (supportEfx) { @@ -190,11 +190,11 @@ public class LwjglAudioRenderer implements AudioRenderer, Runnable { ib.position(0).limit(1); ALC10.alcGetInteger(device, EFX10.ALC_EFX_MINOR_VERSION, ib); int minor = ib.get(0); - logger.log(Level.INFO, "Audio effect extension version: {0}.{1}", new Object[]{major, minor}); + logger.log(Level.FINE, "Audio effect extension version: {0}.{1}", new Object[]{major, minor}); ALC10.alcGetInteger(device, EFX10.ALC_MAX_AUXILIARY_SENDS, ib); auxSends = ib.get(0); - logger.log(Level.INFO, "Audio max auxilary sends: {0}", auxSends); + logger.log(Level.FINE, "Audio max auxilary sends: {0}", auxSends); // create slot ib.position(0).limit(1); diff --git a/engine/src/lwjgl/com/jme3/input/lwjgl/JInputJoyInput.java b/engine/src/lwjgl/com/jme3/input/lwjgl/JInputJoyInput.java index 428ed66eb..606ebec87 100644 --- a/engine/src/lwjgl/com/jme3/input/lwjgl/JInputJoyInput.java +++ b/engine/src/lwjgl/com/jme3/input/lwjgl/JInputJoyInput.java @@ -57,7 +57,7 @@ public class JInputJoyInput implements JoyInput { || c.getType() == Controller.Type.MOUSE) continue; - logger.log(Level.INFO, "Attempting to create joystick for: \"{0}\"", c); + logger.log(Level.FINE, "Attempting to create joystick for: \"{0}\"", c); // Try to create it like a joystick JInputJoystick stick = new JInputJoystick(inputManager, this, c, list.size(), @@ -69,7 +69,7 @@ public class JInputJoyInput implements JoyInput { // If it has no axes then we'll assume it's not // a joystick if( stick.getAxisCount() == 0 ) { - logger.log(Level.INFO, "Not a joystick: {0}", c); + logger.log(Level.FINE, "Not a joystick: {0}", c); continue; } @@ -200,13 +200,13 @@ public class JInputJoyInput implements JoyInput { } else if( id instanceof Axis ) { addAxis(comp); } else { - logger.log(Level.INFO, "Ignoring: \"{0}\"", comp); + logger.log(Level.FINE, "Ignoring: \"{0}\"", comp); } } protected void addButton( Component comp ) { - logger.log(Level.INFO, "Adding button: \"{0}\" id:" + comp.getIdentifier(), comp); + logger.log(Level.FINE, "Adding button: \"{0}\" id:" + comp.getIdentifier(), comp); Identifier id = comp.getIdentifier(); if( !(id instanceof Button) ) { @@ -217,7 +217,7 @@ public class JInputJoyInput implements JoyInput { String original = id.getName(); String logicalId = JoystickCompatibilityMappings.remapComponent( controller.getName(), original ); if( name != original ) { - logger.log(Level.INFO, "Remapped:" + original + " to:" + logicalId); + logger.log(Level.FINE, "Remapped:" + original + " to:" + logicalId); } JoystickButton button = new DefaultJoystickButton( getInputManager(), this, getButtonCount(), @@ -228,7 +228,7 @@ public class JInputJoyInput implements JoyInput { protected void addAxis( Component comp ) { - logger.log(Level.INFO, "Adding axis: \"{0}\" id:" + comp.getIdentifier(), comp ); + logger.log(Level.FINE, "Adding axis: \"{0}\" id:" + comp.getIdentifier(), comp ); Identifier id = comp.getIdentifier(); if( !(id instanceof Axis) ) { @@ -239,7 +239,7 @@ public class JInputJoyInput implements JoyInput { String original = id.getName(); String logicalId = JoystickCompatibilityMappings.remapComponent( controller.getName(), original ); if( name != original ) { - logger.log(Level.INFO, "Remapped:" + original + " to:" + logicalId); + logger.log(Level.FINE, "Remapped:" + original + " to:" + logicalId); } JoystickAxis axis = new DefaultJoystickAxis( getInputManager(), @@ -262,13 +262,13 @@ public class JInputJoyInput implements JoyInput { this, getAxisCount(), JoystickAxis.POV_X, id.getName() + "_x", comp.isAnalog(), comp.isRelative(), comp.getDeadZone() ); - logger.log(Level.INFO, "Adding axis: \"{0}\" id:" + id.getName() + "_x", povX.getName() ); + logger.log(Level.FINE, "Adding axis: \"{0}\" id:" + id.getName() + "_x", povX.getName() ); addAxis(povX); povY = new DefaultJoystickAxis( getInputManager(), this, getAxisCount(), JoystickAxis.POV_Y, id.getName() + "_y", comp.isAnalog(), comp.isRelative(), comp.getDeadZone() ); - logger.log(Level.INFO, "Adding axis: \"{0}\" id:" + id.getName() + "_y", povY.getName() ); + logger.log(Level.FINE, "Adding axis: \"{0}\" id:" + id.getName() + "_y", povY.getName() ); addAxis(povY); } diff --git a/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglGL1Renderer.java b/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglGL1Renderer.java index 4f3db557b..35aec460b 100644 --- a/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglGL1Renderer.java +++ b/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglGL1Renderer.java @@ -120,14 +120,14 @@ public class LwjglGL1Renderer implements GL1Renderer { } public void resetGLObjects() { - logger.log(Level.INFO, "Reseting objects and invalidating state"); + logger.log(Level.FINE, "Reseting objects and invalidating state"); objManager.resetObjects(); statistics.clearMemory(); invalidateState(); } public void cleanup() { - logger.log(Level.INFO, "Deleting objects and invalidating state"); + logger.log(Level.FINE, "Deleting objects and invalidating state"); objManager.deleteAllObjects(this); statistics.clearMemory(); invalidateState(); diff --git a/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java b/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java index 7072fbcd8..ceb999ca3 100644 --- a/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java +++ b/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java @@ -386,7 +386,7 @@ public class LwjglRenderer implements Renderer { caps.add(Caps.Multisample); } - logger.log(Level.INFO, "Caps: {0}", caps); + logger.log(Level.FINE, "Caps: {0}", caps); } public void invalidateState() { @@ -399,14 +399,14 @@ public class LwjglRenderer implements Renderer { } public void resetGLObjects() { - logger.log(Level.INFO, "Reseting objects and invalidating state"); + logger.log(Level.FINE, "Reseting objects and invalidating state"); objManager.resetObjects(); statistics.clearMemory(); invalidateState(); } public void cleanup() { - logger.log(Level.INFO, "Deleting objects and invalidating state"); + logger.log(Level.FINE, "Deleting objects and invalidating state"); objManager.deleteAllObjects(this); statistics.clearMemory(); invalidateState(); @@ -774,7 +774,7 @@ public class LwjglRenderer implements Renderer { if (loc < 0) { uniform.setLocation(-1); // uniform is not declared in shader - logger.log(Level.INFO, "Uniform {0} is not declared in shader {1}.", new Object[]{uniform.getName(), shader.getSources()}); + logger.log(Level.FINE, "Uniform {0} is not declared in shader {1}.", new Object[]{uniform.getName(), shader.getSources()}); } else { uniform.setLocation(loc); } @@ -997,7 +997,7 @@ public class LwjglRenderer implements Renderer { if (compiledOK) { if (infoLog != null) { - logger.log(Level.INFO, "{0} compile success\n{1}", + logger.log(Level.FINE, "{0} compile success\n{1}", new Object[]{source.getName(), infoLog}); } else { logger.log(Level.FINE, "{0} compile success", source.getName()); @@ -1069,7 +1069,7 @@ public class LwjglRenderer implements Renderer { if (linkOK) { if (infoLog != null) { - logger.log(Level.INFO, "shader link success. \n{0}", infoLog); + logger.log(Level.FINE, "shader link success. \n{0}", infoLog); } else { logger.fine("shader link success"); } diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java index 8554a6a8e..e290ed6b7 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java @@ -203,7 +203,7 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna throw new IllegalStateException("SystemListener is not set on context!" + "Must set with JmeContext.setSystemListner()."); - logger.log(Level.INFO, "Using LWJGL {0}", Sys.getVersion()); + logger.log(Level.FINE, "Using LWJGL {0}", Sys.getVersion()); if (!initInThread()) { logger.log(Level.SEVERE, "Display initialization failed. Cannot continue."); return; diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglCanvas.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglCanvas.java index eec7dc021..30db8590b 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglCanvas.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglCanvas.java @@ -89,7 +89,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex } if (renderThread == null){ - logger.log(Level.INFO, "EDT: Creating OGL thread."); + logger.log(Level.FINE, "EDT: Creating OGL thread."); // Also set some settings on the canvas here. // So we don't do it outside the AWT thread. @@ -102,7 +102,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex return; } - logger.log(Level.INFO, "EDT: Telling OGL to create display .."); + logger.log(Level.FINE, "EDT: Telling OGL to create display .."); synchronized (taskLock){ desiredTask = TASK_CREATE_DISPLAY; // while (desiredTask != TASK_COMPLETE){ @@ -114,20 +114,20 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex // } // desiredTask = TASK_NOTHING; } -// logger.log(Level.INFO, "EDT: OGL has created the display"); +// logger.log(Level.FINE, "EDT: OGL has created the display"); } @Override public void removeNotify(){ if (needClose.get()){ - logger.log(Level.INFO, "EDT: Application is stopped. Not restoring canvas."); + logger.log(Level.FINE, "EDT: Application is stopped. Not restoring canvas."); super.removeNotify(); return; } // We must tell GL context to shutdown and wait for it to // shutdown, otherwise, issues will occur. - logger.log(Level.INFO, "EDT: Telling OGL to destroy display .."); + logger.log(Level.FINE, "EDT: Telling OGL to destroy display .."); synchronized (taskLock){ desiredTask = TASK_DESTROY_DISPLAY; while (desiredTask != TASK_COMPLETE){ @@ -141,7 +141,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex desiredTask = TASK_NOTHING; } - logger.log(Level.INFO, "EDT: Acknowledged receipt of canvas death"); + logger.log(Level.FINE, "EDT: Acknowledged receipt of canvas death"); // GL context is dead at this point super.removeNotify(); @@ -160,7 +160,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex public void create(boolean waitFor){ if (renderThread == null){ - logger.log(Level.INFO, "MAIN: Creating OGL thread."); + logger.log(Level.FINE, "MAIN: Creating OGL thread."); renderThread = new Thread(LwjglCanvas.this, "LWJGL Renderer Thread"); renderThread.start(); @@ -192,13 +192,13 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex synchronized (taskLock){ switch (desiredTask){ case TASK_CREATE_DISPLAY: - logger.log(Level.INFO, "OGL: Creating display .."); + logger.log(Level.FINE, "OGL: Creating display .."); restoreCanvas(); listener.gainFocus(); desiredTask = TASK_NOTHING; break; case TASK_DESTROY_DISPLAY: - logger.log(Level.INFO, "OGL: Destroying display .."); + logger.log(Level.FINE, "OGL: Destroying display .."); listener.loseFocus(); pauseCanvas(); break; @@ -251,7 +251,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex * Called to restore the canvas. */ private void restoreCanvas(){ - logger.log(Level.INFO, "OGL: Waiting for canvas to become displayable.."); + logger.log(Level.FINE, "OGL: Waiting for canvas to become displayable.."); while (!canvas.isDisplayable()){ try { Thread.sleep(10); @@ -260,13 +260,13 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex } } - logger.log(Level.INFO, "OGL: Creating display context .."); + logger.log(Level.FINE, "OGL: Creating display context .."); // Set renderable to true, since canvas is now displayable. renderable.set(true); createContext(settings); - logger.log(Level.INFO, "OGL: Display is active!"); + logger.log(Level.FINE, "OGL: Display is active!"); try { if (mouseWasCreated){ @@ -341,7 +341,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex if (pbuffer == null) { pbuffer = new Pbuffer(1, 1, acquirePixelFormat(true), null); pbuffer.makeCurrent(); - logger.log(Level.INFO, "OGL: Pbuffer has been created"); + logger.log(Level.FINE, "OGL: Pbuffer has been created"); // Any created objects are no longer valid if (!runningFirstTime){ diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java index 2edad3caa..105f965ee 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java @@ -75,21 +75,21 @@ public abstract class LwjglContext implements JmeContext { protected void printContextInitInfo(){ logger.log(Level.FINE, "Running on thread: {0}", Thread.currentThread().getName()); - logger.log(Level.INFO, "Adapter: {0}", Display.getAdapter()); - logger.log(Level.INFO, "Driver Version: {0}", Display.getVersion()); + logger.log(Level.CONFIG, "Adapter: {0}", Display.getAdapter()); + logger.log(Level.CONFIG, "Driver Version: {0}", Display.getVersion()); String vendor = GL11.glGetString(GL11.GL_VENDOR); - logger.log(Level.INFO, "Vendor: {0}", vendor); + logger.log(Level.CONFIG, "Vendor: {0}", vendor); String version = GL11.glGetString(GL11.GL_VERSION); - logger.log(Level.INFO, "OpenGL Version: {0}", version); + logger.log(Level.CONFIG, "OpenGL Version: {0}", version); String renderGl = GL11.glGetString(GL11.GL_RENDERER); - logger.log(Level.INFO, "Renderer: {0}", renderGl); + logger.log(Level.CONFIG, "Renderer: {0}", renderGl); if (GLContext.getCapabilities().OpenGL20){ String shadingLang = GL11.glGetString(GL20.GL_SHADING_LANGUAGE_VERSION); - logger.log(Level.INFO, "GLSL Ver: {0}", shadingLang); + logger.log(Level.FINE, "GLSL Ver: {0}", shadingLang); } } diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglDisplay.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglDisplay.java index 70e16fa79..492699e7c 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglDisplay.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglDisplay.java @@ -94,7 +94,7 @@ public class LwjglDisplay extends LwjglAbstractDisplay { settings.useStereo3D()); frameRate = settings.getFrameRate(); - logger.log(Level.INFO, "Selected display mode: {0}", displayMode); + logger.log(Level.FINE, "Selected display mode: {0}", displayMode); boolean pixelFormatChanged = false; if (created.get() && (pixelFormat.getBitsPerPixel() != pf.getBitsPerPixel() diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java index f404496e4..75aafc95e 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java @@ -145,7 +145,7 @@ public class LwjglOffscreenBuffer extends LwjglContext implements Runnable { } public void run(){ - logger.log(Level.INFO, "Using LWJGL {0}", Sys.getVersion()); + logger.log(Level.FINE, "Using LWJGL {0}", Sys.getVersion()); initInThread(); while (!needClose.get()){ runLoop(); diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglSmoothingTimer.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglSmoothingTimer.java index bc7f3c5c8..bd2e275ed 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglSmoothingTimer.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglSmoothingTimer.java @@ -82,7 +82,7 @@ public class LwjglSmoothingTimer extends Timer { reset(); //print timer resolution info - logger.log(Level.INFO, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES); + logger.log(Level.FINE, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES); } public void reset() { diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglTimer.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglTimer.java index 681e7389c..6adf03323 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglTimer.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglTimer.java @@ -67,7 +67,7 @@ public class LwjglTimer extends Timer { */ public LwjglTimer() { reset(); - logger.log(Level.INFO, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES); + logger.log(Level.FINE, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES); } public void reset() { diff --git a/engine/src/networking/com/jme3/network/base/DefaultClient.java b/engine/src/networking/com/jme3/network/base/DefaultClient.java index 9cb9e7af9..ed3a8c200 100644 --- a/engine/src/networking/com/jme3/network/base/DefaultClient.java +++ b/engine/src/networking/com/jme3/network/base/DefaultClient.java @@ -383,7 +383,7 @@ public class DefaultClient implements Client if( m instanceof ClientRegistrationMessage ) { // Then we've gotten our real id this.id = (int)((ClientRegistrationMessage)m).getId(); - log.log( Level.INFO, "Connection established, id:{0}.", this.id ); + log.log( Level.FINE, "Connection established, id:{0}.", this.id ); connecting.countDown(); fireConnected(); return; diff --git a/engine/src/networking/com/jme3/network/base/DefaultServer.java b/engine/src/networking/com/jme3/network/base/DefaultServer.java index 8bb0d425b..2f43a351e 100644 --- a/engine/src/networking/com/jme3/network/base/DefaultServer.java +++ b/engine/src/networking/com/jme3/network/base/DefaultServer.java @@ -336,7 +336,7 @@ public class DefaultServer implements Server if( !getGameName().equals(m.getGameName()) || getVersion() != m.getVersion() ) { - log.log( Level.INFO, "Kicking client due to name/version mismatch:{0}.", c ); + log.log( Level.FINE, "Kicking client due to name/version mismatch:{0}.", c ); // Need to kick them off... I may regret doing this from within // the sync block but the alternative is more code @@ -374,7 +374,7 @@ public class DefaultServer implements Server // Best to do this outside of the synch block to avoid // over synchronizing which is the path to deadlocks if( addedConnection != null ) { - log.log( Level.INFO, "Client registered:{0}.", addedConnection ); + log.log( Level.FINE, "Client registered:{0}.", addedConnection ); // Send the ID back to the client letting it know it's // fully connected. @@ -397,7 +397,7 @@ public class DefaultServer implements Server protected void connectionClosed( Endpoint p ) { if( p.isConnected() ) { - log.log( Level.INFO, "Connection closed:{0}.", p ); + log.log( Level.FINE, "Connection closed:{0}.", p ); } else { log.log( Level.FINE, "Connection closed:{0}.", p ); } @@ -430,7 +430,7 @@ public class DefaultServer implements Server // since in general we are called back for every endpoint closing. if( removed != null && !removed.closed ) { - log.log( Level.INFO, "Client closed:{0}.", removed ); + log.log( Level.FINE, "Client closed:{0}.", removed ); removed.closeConnection(); } diff --git a/engine/src/networking/com/jme3/network/base/KernelAdapter.java b/engine/src/networking/com/jme3/network/base/KernelAdapter.java index 4c1237dcd..38fc98fa8 100644 --- a/engine/src/networking/com/jme3/network/base/KernelAdapter.java +++ b/engine/src/networking/com/jme3/network/base/KernelAdapter.java @@ -225,7 +225,7 @@ public class KernelAdapter extends Thread for( int i = 0; i < len; i++ ) { sb.append( "[" + Integer.toHexString(data[i]) + "]" ); } - log.log( Level.INFO, "First 10 bytes of incomplete nessage:" + sb ); + log.log( Level.FINE, "First 10 bytes of incomplete nessage:" + sb ); throw new RuntimeException( "Envelope contained incomplete data:" + env ); } } diff --git a/engine/src/networking/com/jme3/network/base/MessageListenerRegistry.java b/engine/src/networking/com/jme3/network/base/MessageListenerRegistry.java index 098dfef92..f151e1c84 100644 --- a/engine/src/networking/com/jme3/network/base/MessageListenerRegistry.java +++ b/engine/src/networking/com/jme3/network/base/MessageListenerRegistry.java @@ -75,7 +75,7 @@ public class MessageListenerRegistry implements MessageListener } if( !delivered ) { - log.log( Level.INFO, "Received message had no registered listeners: {0}", m ); + log.log( Level.FINE, "Received message had no registered listeners: {0}", m ); } } diff --git a/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java b/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java index 4a8adfab9..54d6fab42 100644 --- a/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java +++ b/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java @@ -180,7 +180,7 @@ public class SelectorKernel extends AbstractKernel */ protected void closeEndpoint( NioEndpoint p ) throws IOException { - //log.log( Level.INFO, "Closing endpoint:{0}.", p ); + //log.log( Level.FINE, "Closing endpoint:{0}.", p ); thread.cancel(p); } @@ -253,7 +253,7 @@ public class SelectorKernel extends AbstractKernel // accepting new connections serverChannel.register(selector, SelectionKey.OP_ACCEPT); - log.log( Level.INFO, "Hosting TCP connection:{0}.", address ); + log.log( Level.FINE, "Hosting TCP connection:{0}.", address ); } public void close() throws IOException, InterruptedException @@ -324,12 +324,12 @@ public class SelectorKernel extends AbstractKernel { SelectionKey key = endpointKeys.remove(p); if( key == null ) { - //log.log( Level.INFO, "Endpoint already closed:{0}.", p ); + //log.log( Level.FINE, "Endpoint already closed:{0}.", p ); return; // already closed it } log.log( Level.FINE, "Endpoint keys size:{0}", endpointKeys.size() ); - log.log( Level.INFO, "Closing endpoint:{0}.", p ); + log.log( Level.FINE, "Closing endpoint:{0}.", p ); SocketChannel c = (SocketChannel)key.channel(); // Note: key.cancel() is specifically thread safe. One of @@ -343,7 +343,7 @@ public class SelectorKernel extends AbstractKernel protected void cancel( SelectionKey key, SocketChannel c ) throws IOException { NioEndpoint p = (NioEndpoint)key.attachment(); - log.log( Level.INFO, "Closing channel endpoint:{0}.", p ); + log.log( Level.FINE, "Closing channel endpoint:{0}.", p ); Object o = endpointKeys.remove(p); log.log( Level.FINE, "Endpoint keys size:{0}", endpointKeys.size() ); @@ -419,7 +419,7 @@ public class SelectorKernel extends AbstractKernel if( !key.isValid() ) { // When does this happen? - log.log( Level.INFO, "Key is not valid:{0}.", key ); + log.log( Level.FINE, "Key is not valid:{0}.", key ); continue; } @@ -446,7 +446,7 @@ public class SelectorKernel extends AbstractKernel public void run() { - log.log( Level.INFO, "Kernel started for connection:{0}.", address ); + log.log( Level.FINE, "Kernel started for connection:{0}.", address ); // An atomic is safest and costs almost nothing while( go.get() ) { diff --git a/engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java b/engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java index 76772b040..198b915dc 100644 --- a/engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java +++ b/engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java @@ -165,7 +165,7 @@ public class UdpKernel extends AbstractKernel if( socketEndpoints.remove( p.getRemoteAddress() ) == null ) return; - log.log( Level.INFO, "Closing endpoint:{0}.", p ); + log.log( Level.FINE, "Closing endpoint:{0}.", p ); log.log( Level.FINE, "Socket endpoints size:{0}", socketEndpoints.size() ); addEvent( EndpointEvent.createRemove( this, p ) ); @@ -253,7 +253,7 @@ public class UdpKernel extends AbstractKernel public void connect() throws IOException { socket = new DatagramSocket( address ); - log.log( Level.INFO, "Hosting UDP connection:{0}.", address ); + log.log( Level.FINE, "Hosting UDP connection:{0}.", address ); } public void close() throws IOException, InterruptedException @@ -270,7 +270,7 @@ public class UdpKernel extends AbstractKernel public void run() { - log.log( Level.INFO, "Kernel started for connection:{0}.", address ); + log.log( Level.FINE, "Kernel started for connection:{0}.", address ); // An atomic is safest and costs almost nothing while( go.get() ) { diff --git a/engine/src/networking/com/jme3/network/rmi/ObjectStore.java b/engine/src/networking/com/jme3/network/rmi/ObjectStore.java index 2649cfbb9..05634b3ab 100644 --- a/engine/src/networking/com/jme3/network/rmi/ObjectStore.java +++ b/engine/src/networking/com/jme3/network/rmi/ObjectStore.java @@ -174,10 +174,10 @@ public class ObjectStore { if (client != null) { client.send(defMsg); - logger.log(Level.INFO, "Client: Sending {0}", defMsg); + logger.log(Level.FINE, "Client: Sending {0}", defMsg); } else { server.broadcast(defMsg); - logger.log(Level.INFO, "Server: Sending {0}", defMsg); + logger.log(Level.FINE, "Server: Sending {0}", defMsg); } } @@ -223,10 +223,10 @@ public class ObjectStore { if (server != null){ remoteObj.client.send(call); - logger.log(Level.INFO, "Server: Sending {0}", call); + logger.log(Level.FINE, "Server: Sending {0}", call); }else{ client.send(call); - logger.log(Level.INFO, "Client: Sending {0}", call); + logger.log(Level.FINE, "Client: Sending {0}", call); } if (invoke != null){ @@ -296,10 +296,10 @@ public class ObjectStore { retMsg.retVal = ret; if (server != null){ source.send(retMsg); - logger.log(Level.INFO, "Server: Sending {0}", retMsg); + logger.log(Level.FINE, "Server: Sending {0}", retMsg); } else{ client.send(retMsg); - logger.log(Level.INFO, "Client: Sending {0}", retMsg); + logger.log(Level.FINE, "Client: Sending {0}", retMsg); } } }else if (message instanceof RemoteMethodReturnMessage){ @@ -332,10 +332,10 @@ public class ObjectStore { defMsg.objects = defs; if (this.client != null){ this.client.send(defMsg); - logger.log(Level.INFO, "Client: Sending {0}", defMsg); + logger.log(Level.FINE, "Client: Sending {0}", defMsg); } else{ conn.send(defMsg); - logger.log(Level.INFO, "Server: Sending {0}", defMsg); + logger.log(Level.FINE, "Server: Sending {0}", defMsg); } } } diff --git a/engine/src/networking/com/jme3/network/serializing/Serializer.java b/engine/src/networking/com/jme3/network/serializing/Serializer.java index 75118610d..1856038f7 100644 --- a/engine/src/networking/com/jme3/network/serializing/Serializer.java +++ b/engine/src/networking/com/jme3/network/serializing/Serializer.java @@ -174,7 +174,7 @@ public abstract class Serializer { idRegistrations.put(id, reg); classRegistrations.put(cls, reg); - log.log( Level.INFO, "Registered class[" + id + "]:{0} to:" + serializer, cls ); + log.log( Level.FINE, "Registered class[" + id + "]:{0} to:" + serializer, cls ); serializer.initialize(cls); diff --git a/engine/src/niftygui/com/jme3/niftygui/InputSystemJme.java b/engine/src/niftygui/com/jme3/niftygui/InputSystemJme.java index 463a7896e..1074d6f3f 100644 --- a/engine/src/niftygui/com/jme3/niftygui/InputSystemJme.java +++ b/engine/src/niftygui/com/jme3/niftygui/InputSystemJme.java @@ -276,7 +276,7 @@ public class InputSystemJme implements InputSystem, RawInputListener { if (element != null) { final TextField textField = element.getNiftyControl(TextField.class); if (textField != null && !(textField instanceof TextFieldNull)) { - Logger.getLogger(InputSystemJme.class.getName()).log(Level.INFO, "Current TextField: {0}", textField.getId()); + Logger.getLogger(InputSystemJme.class.getName()).log(Level.FINE, "Current TextField: {0}", textField.getId()); String initialValue = textField.getText(); if (initialValue == null) { initialValue = ""; diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/grid/AssetTileLoader.java b/engine/src/terrain/com/jme3/terrain/geomipmap/grid/AssetTileLoader.java index 42702c3a6..54cd15c00 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/grid/AssetTileLoader.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/grid/AssetTileLoader.java @@ -67,7 +67,7 @@ public class AssetTileLoader implements TerrainGridTileLoader { public TerrainQuad getTerrainQuadAt(Vector3f location) { String modelName = assetPath + "/" + name + "_" + Math.round(location.x) + "_" + Math.round(location.y) + "_" + Math.round(location.z) + ".j3o"; - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Load terrain grid tile: {0}", modelName); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Load terrain grid tile: {0}", modelName); TerrainQuad quad = null; try { quad = (TerrainQuad) manager.loadModel(modelName); @@ -78,7 +78,7 @@ public class AssetTileLoader implements TerrainGridTileLoader { Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "Could not load terrain grid tile: {0}", modelName); quad = createNewQuad(location); } else { - Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Loaded terrain grid tile: {0}", modelName); + Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Loaded terrain grid tile: {0}", modelName); } return quad; } diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/grid/ImageTileLoader.java b/engine/src/terrain/com/jme3/terrain/geomipmap/grid/ImageTileLoader.java index 9f2b80edf..4e2d14dd8 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/grid/ImageTileLoader.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/grid/ImageTileLoader.java @@ -113,7 +113,7 @@ public class ImageTileLoader implements TerrainGridTileLoader{ String name = null; try { name = namer.getName(x, z); - logger.log(Level.INFO, "Loading heightmap from file: {0}", name); + logger.log(Level.FINE, "Loading heightmap from file: {0}", name); final Texture texture = assetManager.loadTexture(new TextureKey(name)); heightmap = new ImageBasedHeightMap(texture.getImage()); /*if (assetInfo != null){ diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/AbstractHeightMap.java b/engine/src/terrain/com/jme3/terrain/heightmap/AbstractHeightMap.java index 813309090..7d7b10e00 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/AbstractHeightMap.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/AbstractHeightMap.java @@ -272,7 +272,7 @@ public abstract class AbstractHeightMap implements HeightMap { return false; } - logger.log(Level.INFO, "Saved terrain to {0}", filename); + logger.log(Level.FINE, "Saved terrain to {0}", filename); return true; } diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/FaultHeightMap.java b/engine/src/terrain/com/jme3/terrain/heightmap/FaultHeightMap.java index 194486a5c..2518eb897 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/FaultHeightMap.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/FaultHeightMap.java @@ -150,7 +150,7 @@ public class FaultHeightMap extends AbstractHeightMap { normalizeTerrain(NORMALIZE_RANGE); - logger.log(Level.INFO, "Fault heightmap generated"); + logger.log(Level.FINE, "Fault heightmap generated"); return true; } diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/ImageBasedHeightMapGrid.java b/engine/src/terrain/com/jme3/terrain/heightmap/ImageBasedHeightMapGrid.java index 6d2895b09..f0d841c22 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/ImageBasedHeightMapGrid.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/ImageBasedHeightMapGrid.java @@ -85,7 +85,7 @@ public class ImageBasedHeightMapGrid implements HeightMapGrid { try { String name = namer.getName(x, z); - logger.log(Level.INFO, "Loading heightmap from file: {0}", name); + logger.log(Level.FINE, "Loading heightmap from file: {0}", name); final Texture texture = assetManager.loadTexture(new TextureKey(name)); // CREATE HEIGHTMAP diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/MidpointDisplacementHeightMap.java b/engine/src/terrain/com/jme3/terrain/heightmap/MidpointDisplacementHeightMap.java index 35bded9cd..9998d64a2 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/MidpointDisplacementHeightMap.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/MidpointDisplacementHeightMap.java @@ -151,7 +151,7 @@ public class MidpointDisplacementHeightMap extends AbstractHeightMap { normalizeTerrain(NORMALIZE_RANGE); - logger.log(Level.INFO, "Midpoint displacement heightmap generated"); + logger.log(Level.FINE, "Midpoint displacement heightmap generated"); return true; } diff --git a/engine/src/tools/jme3tools/savegame/SaveGame.java b/engine/src/tools/jme3tools/savegame/SaveGame.java index 9433566c8..4a116380b 100644 --- a/engine/src/tools/jme3tools/savegame/SaveGame.java +++ b/engine/src/tools/jme3tools/savegame/SaveGame.java @@ -100,7 +100,7 @@ public class SaveGame { } os = new GZIPOutputStream(new BufferedOutputStream(new FileOutputStream(saveFile))); ex.save(data, os); - Logger.getLogger(SaveGame.class.getName()).log(Level.INFO, "Saving data to: {0}", saveFile.getAbsolutePath()); + Logger.getLogger(SaveGame.class.getName()).log(Level.FINE, "Saving data to: {0}", saveFile.getAbsolutePath()); } catch (IOException ex1) { Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error saving data: {0}", ex1); ex1.printStackTrace(); @@ -182,7 +182,7 @@ public class SaveGame { imp.setAssetManager(manager); } sav = imp.load(is); - Logger.getLogger(SaveGame.class.getName()).log(Level.INFO, "Loading data from: {0}", file.getAbsolutePath()); + Logger.getLogger(SaveGame.class.getName()).log(Level.FINE, "Loading data from: {0}", file.getAbsolutePath()); } catch (IOException ex) { Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error loading data: {0}", ex); ex.printStackTrace();