com.j256.ormlite.android
Class AndroidLog
java.lang.Object
com.j256.ormlite.android.AndroidLog
- All Implemented Interfaces:
- com.j256.ormlite.logger.Log
public class AndroidLog
- extends Object
- implements com.j256.ormlite.logger.Log
Implementation of our logger which delegates to the internal Android logger.
To see log messages you will do something like:
adb shell setprop log.tag.OrmLiteBaseActivity VERBOSE
NOTE: Unfortunately, Android variables are limited in size so this class takes that last 23 (sic) characters
of the class name if it is larger than 23 characters. For example, if the class is AndroidDatabaseConnection you
would do:
adb shell setprop log.tag.droidDatabaseConnection VERBOSE
- Author:
- graywatson
Nested classes/interfaces inherited from interface com.j256.ormlite.logger.Log |
com.j256.ormlite.logger.Log.Level |
Method Summary |
boolean |
isLevelEnabled(com.j256.ormlite.logger.Log.Level level)
|
void |
log(com.j256.ormlite.logger.Log.Level level,
String msg)
|
void |
log(com.j256.ormlite.logger.Log.Level level,
String msg,
Throwable t)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndroidLog
public AndroidLog(String className)
isLevelEnabled
public boolean isLevelEnabled(com.j256.ormlite.logger.Log.Level level)
- Specified by:
isLevelEnabled
in interface com.j256.ormlite.logger.Log
log
public void log(com.j256.ormlite.logger.Log.Level level,
String msg)
- Specified by:
log
in interface com.j256.ormlite.logger.Log
log
public void log(com.j256.ormlite.logger.Log.Level level,
String msg,
Throwable t)
- Specified by:
log
in interface com.j256.ormlite.logger.Log
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.