All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.xpenatan.gdx.backends.teavm.TeaApplicationLogger Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
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