com.codeslap.apps.api.Logger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codeslap-api Show documentation
Show all versions of codeslap-api Show documentation
Java library to use the apps.codeslap.com API
package com.codeslap.apps.api;
/**
*
* @author cristian
*/
class Logger {
public static void d(String tag, String message) {
if (isDebugEnabled()) {
System.out.printf("D/%s %s\n", tag, message);
}
}
private static boolean isDebugEnabled() {
return "true".equals(System.getProperty("com.twitvid.api.debug"));
}
public static void e(String tag, String message, Exception exception) {
if (exception != null) {
exception.printStackTrace();
}
System.out.printf("E/%s %s\n", tag, message);
}
public static void e(String tag, String message) {
System.out.printf("E/%s %s\n", tag, message);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy