Logger { public static void log(String TAG, LogLevel logLevel, String logMessage) { if (DEBUG) { logToLogcat(TAG, logLevel, logMessage); } } private  Logger(); static synchronized Logger getInstance(); static void log(String TAG, LogLevel logLevel, String logMessage); static final boolean DEBUG; }
@Test public void logInfo(){ Logger.log("", LogLevel.INFO, "log message"); }
@Test public void logError(){ Logger.log("", LogLevel.ERROR, "log message"); }
@Test public void logWarning(){ Logger.log("", LogLevel.WARNING, "log message"); }