Skip to content

Instantly share code, notes, and snippets.

@r-winkler
Created January 27, 2017 09:38
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 r-winkler/7ef6c3cc5ebcb047a23d8f44f10cb555 to your computer and use it in GitHub Desktop.
Save r-winkler/7ef6c3cc5ebcb047a23d8f44f10cb555 to your computer and use it in GitHub Desktop.
private static StringBuilder dbgSb = null;
public static void DoLog(String s) {
if (dbgSb == null) {
dbgSb = new StringBuilder();
dbgSb.append("\n###********************\n");
}
dbgSb.append(s + "\n");
}
public static String getLogString() {
String s = dbgSb.toString();
dbgSb = null;
return s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment