Skip to content

Instantly share code, notes, and snippets.

@omegasoft7
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omegasoft7/e61328a815b467f4878c to your computer and use it in GitHub Desktop.
Save omegasoft7/e61328a815b467f4878c to your computer and use it in GitHub Desktop.
public static void logOut(String string) {
if (string.length() > 3000) {
int length = string.length();
String str = string;
while (length > 3000) {
Log.w("MYAPP", str.substring(0, 3000));
str = str.substring(3000);
length = str.length();
}
Log.w("MYAPP", str);
} else {
Log.w("MYAPP", string);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment