String prefix = priorityChar(priority) + "/" + tag + ": "; for (String msg: msgs.split("\n")) { System.out.println(prefix + msg); } return 0;
switch (priority) { case Log.VERBOSE: return 'V"; case Log.DEBUG: return 'D"; case Log.INFO: return 'I"; case Log.WARN: return 'W"; case Log.ERROR: return 'E"; case Log.ASSERT: return 'A"; default: return '?"; }