public void l(int level, String str, boolean sysOnly) { synchronized (MyLog.class) { str = str.trim(); // Messages of this severity are handled specially if (level == Log.ERROR || level == Log.WARN) { Globals.setLastError(str); } if (level >= Defaults.getConsoleLogLevel()) { Log.println(level, tag, str); } if (!sysOnly) { // some messages only go to the Android log if (level >= Defaults.getUiLogLevel()) { FTPServerService.log(level, str); } } } }