Fix bug that can occur when stripping off the prefix from the package of a

qualified class name.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1708 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2005-08-26 22:31:09 +00:00
parent f26d3214e2
commit a043d07b73
@@ -56,7 +56,8 @@ public class OneLineLogFormatter extends Formatter
boolean legacy = (where.indexOf("LoggingLogProvider") != -1);
if (where != null && !legacy) {
String logger = record.getLoggerName();
if (logger != null && where.startsWith(logger)) {
if (logger != null && where.startsWith(logger) &&
where.length() > logger.length()) {
where = where.substring(logger.length()+1);
}
} else {