Making configurationFilename on CentralizedLogging optional

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@871 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Joakim Erdfelt 2009-09-10 23:49:14 +00:00
parent bbdfe61a5f
commit f610858e6f
1 changed files with 4 additions and 6 deletions

View File

@ -32,11 +32,6 @@ public class CentralizedLogging extends AbstractLifeCycle
private CentralizedWebAppLoggingConfiguration webAppConfiguration;
private String configurationFilename;
public CentralizedLogging()
{
System.err.println(CentralizedLogging.class.getName() + " <init>");
}
public String getConfigurationFilename()
{
return configurationFilename;
@ -60,7 +55,10 @@ public class CentralizedLogging extends AbstractLifeCycle
@Override
protected void doStart() throws Exception
{
CentralizedWebAppLoggingConfiguration.setLoggerConfigurationFilename(configurationFilename);
if (configurationFilename != null)
{
CentralizedWebAppLoggingConfiguration.setLoggerConfigurationFilename(configurationFilename);
}
webAppConfiguration = new CentralizedWebAppLoggingConfiguration();
@SuppressWarnings("unchecked")