public class AndroidLogBackend extends Object implements com.j256.ormlite.logger.LogBackend
To see log messages you will do something like:
adb shell setprop log.tag.YourActivity 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
To see all log messages use:
adb shell setprop log.tag.simplelogging DEBUG
Modifier and Type | Class and Description |
---|---|
static class |
AndroidLogBackend.AndroidLogBackendFactory
Factory for generating AndroidLogBackend instances.
|
Constructor and Description |
---|
AndroidLogBackend(String className) |
Modifier and Type | Method and Description |
---|---|
boolean |
isLevelEnabled(com.j256.ormlite.logger.Level level) |
void |
log(com.j256.ormlite.logger.Level level,
String msg) |
void |
log(com.j256.ormlite.logger.Level level,
String msg,
Throwable t) |
public AndroidLogBackend(String className)
public boolean isLevelEnabled(com.j256.ormlite.logger.Level level)
isLevelEnabled
in interface com.j256.ormlite.logger.LogBackend
public void log(com.j256.ormlite.logger.Level level, String msg)
log
in interface com.j256.ormlite.logger.LogBackend
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.