Skip to content
#

logcat

Here are 81 public repositories matching this topic...

mengxilan
mengxilan commented Dec 12, 2018

override createMessage in LoggerPrinter like this:

1:
// return args == null || args.length == 0 ? message : String.format(message, args);
if (args == null || args.length == 0) {
return message;
}
String pattern = "(%\d)?$(a|b|c|d|e|f|g|h|n|s|tx)";
Pattern p = Pattern.compile(pattern);
Matcher m = p.matcher(message);
if (m.find()) {
return String.format(message, args);
} else {
t(me

Improve this page

Add a description, image, and links to the logcat topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the logcat topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.