Is it possible to set the log levels on a device that is not rooted? so I want to change the device log level somehow to \"debug\". is this something that can be done?
setprop
:
local.prop
which is only possible on rooted phones.Loglevels:
Log.d()
then it will be on "debug" level and you can't change that unless you change the code and recompile it. There is nothing that hides log messages if you execute a Log.?
regardless of level.if (LOCAL_LOGV) Log.v(...
- you need to change the code here to see those too.Config.LOGV
(= always false
) see Config. No way to change the broken behaviour here either. You need to recompile.example
public static final boolean DEBUG_SQL_CACHE =
Log.isLoggable("SQLiteCompiledSql", Log.VERBOSE);
// somewhere in code
if (SQLiteDebug.DEBUG_SQL_CACHE) {
Log.d(TAG, "secret message!");
}
if you do adb shell setprop log.tag.SQLiteCompiledSql VERBOSE
you should see those messages popping up. Log#isLoggable()
There is no global loglevel I know of.