public static void setProperties(final Properties logProps) {
        if (logProps != null) {
            LogLevel level = readLogLevel(logProps, PROP_MIN_LOG_LEVEL);
            if (level != null) {
                minLogLevel = level;
            }
            level = readLogLevel(logProps, PROP_MIN_CALLERINFO_LEVEL);
            if (level != null) {
                minLogAddCallerInfo = level;
            }
            if (logProps.containsKey(PROP_CALLERINFO_MAXDEPTH)) {
                try {
                    addCallerInfoMaxDepth = Integer.parseInt(logProps.getProperty(PROP_CALLERINFO_MAXDEPTH));
                } catch (NumberFormatException nfe) {
                    //no valid maxDepth in prop file, ignore this
                }
            }
            logThrowExceptionOnError = "true".equalsIgnoreCase(logProps.getProperty(PROP_THROW_ON_ERROR_LOG));
            logTransactionSizes = "true".equalsIgnoreCase(logProps.getProperty(PROP_LOG_TRANSACTION_SIZES));
            if (logProps.containsKey(PROP_LOGFILE)) {
                final String logfileNamePraefix = logProps.getProperty(PROP_LOGFILE).trim();
                if (StringUtils.isNotBlank(logfileNamePraefix)) {
                    final String logFileName = FileNameCreator.LOGFILE_SELF_WRITTEN.createName(logfileNamePraefix);
                    Uri logFileUri = null;
                    try {
                        logFileUri = ContentStorage.get().create(PersistableFolder.LOGFILES.getFolder(), logFileName);
                        final OutputStream logFileStream = ContentStorage.get().openForWrite(logFileUri);
                        logFileWriter = new PrintWriter(Objects.requireNonNull(logFileStream));
                        android.util.Log.i(TAG, "[Log] opened logfile '" + logFileName + "' at '" + logFileUri + "'");
                    } catch (Exception ioe) {
                        //could not open logfile
                        android.util.Log.e(TAG, "[Log] Failed to open '" + logFileName + "' at '" + logFileUri + "'", ioe);
                    }
                }
            }
            adjustSettings();
        }
    }
Save a copy of the debug flag from the settings for performance reasons.
main/src/main/java/cgeo/geocaching/utils/Log.java