Permalink
Browse files

fixed logging in iOS backend

  • Loading branch information...
badlogic committed Jul 31, 2014
1 parent e263796 commit fe6949476080c74f812a4496f858cfaec01e359f
@@ -290,44 +290,44 @@ public Net getNet () {
@Override
public void log (String tag, String message) {
if (logLevel > LOG_NONE) {
Foundation.NSLog("[info] " + tag + ": " + message);
Foundation.log("[info] " + tag + ": " + message);
}
}
@Override
public void log (String tag, String message, Throwable exception) {
if (logLevel > LOG_NONE) {
Foundation.NSLog("[info] " + tag + ": " + message);
Foundation.log("[info] " + tag + ": " + message);
exception.printStackTrace();
}
}
@Override
public void error (String tag, String message) {
if (logLevel >= LOG_ERROR) {
Foundation.NSLog("[error] " + tag + ": " + message);
Foundation.log("[error] " + tag + ": " + message);
}
}
@Override
public void error (String tag, String message, Throwable exception) {
if (logLevel >= LOG_ERROR) {
Foundation.NSLog("[error] " + tag + ": " + message);
Foundation.log("[error] " + tag + ": " + message);
exception.printStackTrace();
}
}
@Override
public void debug (String tag, String message) {
if (logLevel >= LOG_DEBUG) {
Foundation.NSLog("[debug] " + tag + ": " + message);
Foundation.log("[debug] " + tag + ": " + message);
}
}
@Override
public void debug (String tag, String message, Throwable exception) {
if (logLevel >= LOG_DEBUG) {
Foundation.NSLog("[error] " + tag + ": " + message);
Foundation.log("[error] " + tag + ": " + message);
exception.printStackTrace();
}
}
@@ -1,8 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -86,7 +87,7 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enab
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.compiler.source=1.8
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0

2 comments on commit fe69494

@alexander-mironov

This comment has been minimized.

Contributor

alexander-mironov replied Jul 31, 2014

Sorry, Mario. I had not checked correctness before creating a pull request. My bad.

@badlogic

This comment has been minimized.

Member

badlogic replied Jul 31, 2014

Please sign in to comment.