- set back logging about jme version and graphics adapter to Level.INFO

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10312 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 35fb34e9c9
commit 30498824d0
  1. 2
      engine/src/android/com/jme3/system/android/JmeAndroidSystem.java
  2. 2
      engine/src/android/com/jme3/system/android/OGLESContext.java
  3. 1
      engine/src/core/com/jme3/system/JmeSystem.java
  4. 2
      engine/src/desktop/com/jme3/system/JmeDesktopSystem.java
  5. 15
      engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java

@ -143,7 +143,7 @@ public class JmeAndroidSystem extends JmeSystemDelegate {
} catch (SecurityException ex) { } catch (SecurityException ex) {
logger.log(Level.SEVERE, "Security error in creating log file", ex); logger.log(Level.SEVERE, "Security error in creating log file", ex);
} }
logger.log(Level.FINE, "Running on {0}", getFullName()); logger.log(Level.INFO, "Running on {0}", getFullName());
} }
@Override @Override

@ -131,7 +131,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
int[] version = new int[2]; int[] version = new int[2];
if (egl.eglInitialize(display, version) == true) { if (egl.eglInitialize(display, version) == true) {
logger.log(Level.CONFIG, "Display EGL Version: {0}.{1}", new Object[]{version[0], version[1]}); logger.log(Level.INFO, "Display EGL Version: {0}.{1}", new Object[]{version[0], version[1]});
} }
try { try {

@ -47,6 +47,7 @@ import java.util.logging.Logger;
public class JmeSystem { public class JmeSystem {
private static final Logger logger = Logger.getLogger(JmeSystem.class.getName());
public static enum StorageFolderType { public static enum StorageFolderType {
Internal, Internal,
External, External,

@ -305,7 +305,7 @@ public class JmeDesktopSystem extends JmeSystemDelegate {
} catch (SecurityException ex) { } catch (SecurityException ex) {
logger.log(Level.SEVERE, "Security error in creating log file", ex); logger.log(Level.SEVERE, "Security error in creating log file", ex);
} }
logger.log(Level.FINE, "Running on {0}", getFullName()); logger.log(Level.INFO, "Running on {0}", getFullName());
if (!lowPermissions) { if (!lowPermissions) {
try { try {

@ -41,6 +41,7 @@ import com.jme3.renderer.lwjgl.LwjglGL1Renderer;
import com.jme3.renderer.lwjgl.LwjglRenderer; import com.jme3.renderer.lwjgl.LwjglRenderer;
import com.jme3.system.AppSettings; import com.jme3.system.AppSettings;
import com.jme3.system.JmeContext; import com.jme3.system.JmeContext;
import com.jme3.system.JmeSystem;
import com.jme3.system.SystemListener; import com.jme3.system.SystemListener;
import com.jme3.system.Timer; import com.jme3.system.Timer;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;
@ -73,23 +74,23 @@ public abstract class LwjglContext implements JmeContext {
} }
protected void printContextInitInfo(){ protected void printContextInitInfo(){
logger.log(Level.FINE, "Running on thread: {0}", Thread.currentThread().getName()); logger.log(Level.INFO, "Lwjgl context running on thread {1}", Thread.currentThread().getName());
logger.log(Level.CONFIG, "Adapter: {0}", Display.getAdapter()); logger.log(Level.INFO, "Adapter: {0}", Display.getAdapter());
logger.log(Level.CONFIG, "Driver Version: {0}", Display.getVersion()); logger.log(Level.INFO, "Driver Version: {0}", Display.getVersion());
String vendor = GL11.glGetString(GL11.GL_VENDOR); String vendor = GL11.glGetString(GL11.GL_VENDOR);
logger.log(Level.CONFIG, "Vendor: {0}", vendor); logger.log(Level.INFO, "Vendor: {0}", vendor);
String version = GL11.glGetString(GL11.GL_VERSION); String version = GL11.glGetString(GL11.GL_VERSION);
logger.log(Level.CONFIG, "OpenGL Version: {0}", version); logger.log(Level.INFO, "OpenGL Version: {0}", version);
String renderGl = GL11.glGetString(GL11.GL_RENDERER); String renderGl = GL11.glGetString(GL11.GL_RENDERER);
logger.log(Level.CONFIG, "Renderer: {0}", renderGl); logger.log(Level.INFO, "Renderer: {0}", renderGl);
if (GLContext.getCapabilities().OpenGL20){ if (GLContext.getCapabilities().OpenGL20){
String shadingLang = GL11.glGetString(GL20.GL_SHADING_LANGUAGE_VERSION); String shadingLang = GL11.glGetString(GL20.GL_SHADING_LANGUAGE_VERSION);
logger.log(Level.FINE, "GLSL Ver: {0}", shadingLang); logger.log(Level.INFO, "GLSL Ver: {0}", shadingLang);
} }
} }

Loading…
Cancel
Save