Android Open Source - InMemoryDb Log Manager From Project Back to project page InMemoryDb .
License The source code is released under:
Apache License
If you think the Android project InMemoryDb listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package org.gawst.asyncdb;
/ / f r o m w w w . j a v a 2 s . c o m
import android.util.Log;
/**
* class that holds the {@link Logger} for this library, defaults to {@link LoggerDefault} to send logs to android {@link Log}
*/
public final class LogManager {
static Logger logger = new LoggerDefault();
public static void setLogger(Logger newLogger) {
logger = newLogger;
}
public static Logger getLogger() {
return logger;
}
/**
* Helper class to redirect {@link LogManager#logger} to {@link Log}
*/
public static class LoggerDefault implements Logger {
@Override
public int v(String tag, String msg) {
return Log.v(tag, msg);
}
@Override
public int v(String tag, String msg, Throwable tr) {
return Log.v(tag, msg, tr);
}
@Override
public int d(String tag, String msg) {
return Log.d(tag, msg);
}
@Override
public int d(String tag, String msg, Throwable tr) {
return Log.d(tag, msg, tr);
}
@Override
public int i(String tag, String msg) {
return Log.i(tag, msg);
}
@Override
public int i(String tag, String msg, Throwable tr) {
return Log.i(tag, msg, tr);
}
@Override
public int w(String tag, String msg) {
return Log.w(tag, msg);
}
@Override
public int w(String tag, String msg, Throwable tr) {
return Log.w(tag, msg, tr);
}
@Override
public int e(String tag, String msg) {
return Log.e(tag, msg);
}
@Override
public int e(String tag, String msg, Throwable tr) {
return Log.e(tag, msg, tr);
}
}
}
Java Source Code List org.gawst.asyncdb.AsyncDatabaseHandler.java org.gawst.asyncdb.AsyncDbHelperHandler.java org.gawst.asyncdb.AsyncQueryHandler.java org.gawst.asyncdb.AsynchronousDatabase.java org.gawst.asyncdb.AsynchronousDbErrorHandler.java org.gawst.asyncdb.AsynchronousDbHelper.java org.gawst.asyncdb.AsynchronousDbOperation.java org.gawst.asyncdb.DataSource.java org.gawst.asyncdb.InMemoryDbArrayList.java org.gawst.asyncdb.InMemoryDbCopyOnWriteArrayList.java org.gawst.asyncdb.InMemoryDbList.java org.gawst.asyncdb.InMemoryDbListener.java org.gawst.asyncdb.InMemoryDbMap.java org.gawst.asyncdb.InMemoryDbSet.java org.gawst.asyncdb.InMemoryDbTreeSet.java org.gawst.asyncdb.InMemoryHashmapDb.java org.gawst.asyncdb.InMemoryLruCache.java org.gawst.asyncdb.InvalidDbEntry.java org.gawst.asyncdb.InvalidEntry.java org.gawst.asyncdb.LogManager.java org.gawst.asyncdb.Logger.java org.gawst.asyncdb.LruCache.java org.gawst.asyncdb.MapDataSource.java org.gawst.asyncdb.MapDatabaseElementHandler.java org.gawst.asyncdb.MapEntry.java org.gawst.asyncdb.adapter.InMemoryArrayListAdapter.java org.gawst.asyncdb.adapter.InMemoryFilteredAdapter.java org.gawst.asyncdb.adapter.InMemoryFilteredListAdapter.java org.gawst.asyncdb.adapter.InMemoryFilteredTreeAdapter.java org.gawst.asyncdb.adapter.InMemoryTreeSetAdapter.java org.gawst.asyncdb.adapter.UIHandler.java org.gawst.asyncdb.purge.DatabasePurgerMaxDate.java org.gawst.asyncdb.purge.DatabaseSourcePurgerMax.java org.gawst.asyncdb.purge.DatabaseSourcePurger.java org.gawst.asyncdb.purge.PurgeHandler.java org.gawst.asyncdb.source.ContentProviderDataSource.java org.gawst.asyncdb.source.CursorDataSource.java org.gawst.asyncdb.source.DatabaseElementHandler.java org.gawst.asyncdb.source.DatabaseSource.java org.gawst.asyncdb.source.SqliteDataSource.java org.gawst.asyncdb.source.SqliteMapDataSource.java org.gawst.asyncdb.source.typed.TypedContentProviderDataSource.java org.gawst.asyncdb.source.typed.TypedCursorDataSource.java org.gawst.asyncdb.source.typed.TypedDatabaseElementHandler.java org.gawst.asyncdb.source.typed.TypedDatabaseSource.java org.gawst.asyncdb.source.typed.TypedSqliteDataSource.java org.gawst.asyncdb.source.typed.TypedSqliteMapDataSource.java