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:
parent
bbdfe61a5f
commit
f610858e6f
|
@ -32,11 +32,6 @@ public class CentralizedLogging extends AbstractLifeCycle
|
||||||
private CentralizedWebAppLoggingConfiguration webAppConfiguration;
|
private CentralizedWebAppLoggingConfiguration webAppConfiguration;
|
||||||
private String configurationFilename;
|
private String configurationFilename;
|
||||||
|
|
||||||
public CentralizedLogging()
|
|
||||||
{
|
|
||||||
System.err.println(CentralizedLogging.class.getName() + " <init>");
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getConfigurationFilename()
|
public String getConfigurationFilename()
|
||||||
{
|
{
|
||||||
return configurationFilename;
|
return configurationFilename;
|
||||||
|
@ -59,8 +54,11 @@ public class CentralizedLogging extends AbstractLifeCycle
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doStart() throws Exception
|
protected void doStart() throws Exception
|
||||||
|
{
|
||||||
|
if (configurationFilename != null)
|
||||||
{
|
{
|
||||||
CentralizedWebAppLoggingConfiguration.setLoggerConfigurationFilename(configurationFilename);
|
CentralizedWebAppLoggingConfiguration.setLoggerConfigurationFilename(configurationFilename);
|
||||||
|
}
|
||||||
webAppConfiguration = new CentralizedWebAppLoggingConfiguration();
|
webAppConfiguration = new CentralizedWebAppLoggingConfiguration();
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
|
Loading…
Reference in New Issue