Only put the colon in if we've got a logging context.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1787 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -67,10 +67,10 @@ public class OneLineLogFormatter extends Formatter
|
|||||||
// append the log level
|
// append the log level
|
||||||
buf.append(" ");
|
buf.append(" ");
|
||||||
buf.append(record.getLevel().getLocalizedName());
|
buf.append(record.getLevel().getLocalizedName());
|
||||||
|
buf.append(" ");
|
||||||
|
|
||||||
if (_showWhere) {
|
if (_showWhere) {
|
||||||
// append the log method call context
|
// append the log method call context
|
||||||
buf.append(" ");
|
|
||||||
String where = record.getSourceClassName();
|
String where = record.getSourceClassName();
|
||||||
boolean legacy = (where.indexOf("LoggingLogProvider") != -1);
|
boolean legacy = (where.indexOf("LoggingLogProvider") != -1);
|
||||||
if (where != null && !legacy) {
|
if (where != null && !legacy) {
|
||||||
@@ -87,10 +87,10 @@ public class OneLineLogFormatter extends Formatter
|
|||||||
buf.append(".");
|
buf.append(".");
|
||||||
buf.append(record.getSourceMethodName());
|
buf.append(record.getSourceMethodName());
|
||||||
}
|
}
|
||||||
|
buf.append(": ");
|
||||||
}
|
}
|
||||||
|
|
||||||
// append the message itself
|
// append the message itself
|
||||||
buf.append(": ");
|
|
||||||
buf.append(formatMessage(record));
|
buf.append(formatMessage(record));
|
||||||
buf.append(LINE_SEPARATOR);
|
buf.append(LINE_SEPARATOR);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user