• R/O
  • HTTP
  • SSH
  • HTTPS

libgdx-mikumikustudio: Commit


Commit MetaInfo

Revision0c090207dd985bd39b7623f33d7759fe97015b2b (tree)
Time2013-10-15 20:45:50
AuthorNathan Sweet <nathan.sweet@gmai...>
CommiterNathan Sweet

Log Message

Merge pull request #834 from jrenner/get-log-level

getLogLevel() in Application interface

Change Summary

Incremental Difference

--- a/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidApplication.java
+++ b/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidApplication.java
@@ -401,6 +401,11 @@ public class AndroidApplication extends Activity implements Application {
401401 }
402402
403403 @Override
404+ public int getLogLevel() {
405+ return logLevel;
406+ }
407+
408+ @Override
404409 public void addLifecycleListener (LifecycleListener listener) {
405410 synchronized(lifecycleListeners) {
406411 lifecycleListeners.add(listener);
--- a/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidDaydream.java
+++ b/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidDaydream.java
@@ -391,6 +391,11 @@ public class AndroidDaydream extends DreamService implements Application {
391391 }
392392
393393 @Override
394+ public int getLogLevel() {
395+ return logLevel;
396+ }
397+
398+ @Override
394399 public void addLifecycleListener (LifecycleListener listener) {
395400 synchronized (lifecycleListeners) {
396401 lifecycleListeners.add(listener);
--- a/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidLiveWallpaper.java
+++ b/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidLiveWallpaper.java
@@ -348,6 +348,11 @@ public class AndroidLiveWallpaper implements Application {
348348 }
349349
350350 @Override
351+ public int getLogLevel() {
352+ return logLevel;
353+ }
354+
355+ @Override
351356 public void exit () {
352357 // no-op
353358 }
--- a/backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/JglfwApplication.java
+++ b/backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/JglfwApplication.java
@@ -1,17 +1,17 @@
1-/*******************************************************************************
2- * Copyright 2011 See AUTHORS file.
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
1+/*******************************************************************************
2+ * Copyright 2011 See AUTHORS file.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
1515 ******************************************************************************/
1616
1717 package com.badlogic.gdx.backends.jglfw;
@@ -353,6 +353,11 @@ public class JglfwApplication implements Application {
353353 this.logLevel = logLevel;
354354 }
355355
356+ @Override
357+ public int getLogLevel() {
358+ return logLevel;
359+ }
360+
356361 public void debug (String tag, String message) {
357362 if (logLevel >= LOG_DEBUG) {
358363 System.out.println(tag + ": " + message);
--- a/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglAWTCanvas.java
+++ b/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglAWTCanvas.java
@@ -385,6 +385,11 @@ public class LwjglAWTCanvas implements Application {
385385 }
386386
387387 @Override
388+ public int getLogLevel() {
389+ return logLevel;
390+ }
391+
392+ @Override
388393 public void exit () {
389394 postRunnable(new Runnable() {
390395 @Override
--- a/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglApplication.java
+++ b/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglApplication.java
@@ -375,6 +375,11 @@ public class LwjglApplication implements Application {
375375 }
376376
377377 @Override
378+ public int getLogLevel() {
379+ return logLevel;
380+ }
381+
382+ @Override
378383 public void exit () {
379384 postRunnable(new Runnable() {
380385 @Override
--- a/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglCanvas.java
+++ b/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglCanvas.java
@@ -384,6 +384,11 @@ public class LwjglCanvas implements Application {
384384 }
385385
386386 @Override
387+ public int getLogLevel() {
388+ return logLevel;
389+ }
390+
391+ @Override
387392 public void exit () {
388393 postRunnable(new Runnable() {
389394 @Override
--- a/backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/IOSApplication.java
+++ b/backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/IOSApplication.java
@@ -1,17 +1,17 @@
1-/*******************************************************************************
2- * Copyright 2011 See AUTHORS file.
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
1+/*******************************************************************************
2+ * Copyright 2011 See AUTHORS file.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
1515 ******************************************************************************/
1616
1717 package com.badlogic.gdx.backends.iosrobovm;
@@ -307,6 +307,11 @@ public class IOSApplication implements Application {
307307 }
308308
309309 @Override
310+ public int getLogLevel() {
311+ return logLevel;
312+ }
313+
314+ @Override
310315 public ApplicationType getType () {
311316 return ApplicationType.iOS;
312317 }
--- a/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplication.java
+++ b/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplication.java
@@ -365,6 +365,11 @@ public abstract class GwtApplication implements EntryPoint, Application {
365365 }
366366
367367 @Override
368+ public int getLogLevel() {
369+ return logLevel;
370+ }
371+
372+ @Override
368373 public ApplicationType getType () {
369374 return ApplicationType.WebGL;
370375 }
--- a/gdx/src/com/badlogic/gdx/Application.java
+++ b/gdx/src/com/badlogic/gdx/Application.java
@@ -148,6 +148,9 @@ public interface Application {
148148 * @param logLevel {@link #LOG_NONE}, {@link #LOG_ERROR}, {@link #LOG_INFO}, {@link #LOG_DEBUG}. */
149149 public void setLogLevel (int logLevel);
150150
151+ /** Gets the log level. */
152+ public int getLogLevel();
153+
151154 /** @return what {@link ApplicationType} this application has, e.g. Android or Desktop */
152155 public ApplicationType getType ();
153156
Show on old repository browser