64 |
|
* @return The string to be written to the log. |
65 |
|
*/ |
66 |
|
public static String formatLogLine(String source, int verbosity, String message){ |
67 |
< |
String date = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM, Locale.UK).format(new Date()); |
67 |
> |
String date = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM).format(new Date()); |
68 |
|
return "[" + date + "] [" + VERBOSITY_NAMES[verbosity] + "] " + source + ": " + message; |
69 |
|
} |
70 |
|
|
80 |
|
private static String tidyClassName(String className) { |
81 |
|
String prefix = "uk.org.iscream"; |
82 |
|
if (className.startsWith(prefix)) { |
83 |
< |
return className.substring(prefix.length()); |
83 |
> |
return className.substring(prefix.length()+1); |
84 |
|
} |
85 |
|
return className; |
86 |
|
} |