* Perform some sanity checks on log file name,

as Jetty sometimes uses http context paths in log names.
This commit is contained in:
hns 2007-12-12 13:01:54 +00:00
parent cb0d4e830d
commit 29cebb79a9

View file

@ -63,6 +63,8 @@ public class Logging extends LogFactory {
if (logname == null) {
throw new LogConfigurationException("No logname specified!");
}
// normalize log name
logname = logname.replaceFirst("[^\\w\\d\\.]", "");
if ("console".equals(logdir)) {
if (logname.startsWith("org.mortbay."))
return getConsoleLog().getSedatedLog();