com.github.xpenatan.gdx.backends.teavm.TeaApplicationLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backend-teavm Show documentation
Show all versions of backend-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
package com.github.xpenatan.gdx.backends.teavm;
import com.badlogic.gdx.ApplicationLogger;
/**
* @author xpenatan
*/
public class TeaApplicationLogger implements ApplicationLogger {
@Override
public void log(String tag, String message) {
System.out.println(tag + ": " + message);
}
@Override
public void log(String tag, String message, Throwable exception) {
System.out.println(tag + ": " + message);
exception.printStackTrace();
}
@Override
public void error(String tag, String message) {
System.err.println(tag + ": " + message);
}
@Override
public void error(String tag, String message, Throwable exception) {
System.err.println(tag + ": " + message);
exception.printStackTrace();
}
@Override
public void debug(String tag, String message) {
System.err.println(tag + ": " + message);
}
@Override
public void debug(String tag, String message, Throwable exception) {
System.err.println(tag + ": " + message);
exception.printStackTrace();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy