* Perform some sanity checks on log file name,
as Jetty sometimes uses http context paths in log names.
This commit is contained in:
		
							parent
							
								
									cb0d4e830d
								
							
						
					
					
						commit
						29cebb79a9
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue