in core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/CoreStartupObserver.java [48:110]
protected void logCoreConfiguration(@Observes StartupEvent startupEvent)
{
if(!this.codiCoreConfig.isConfigurationLoggingEnabled())
{
return;
}
try
{
String cdiVersion = detectActiveCdiVersion();
//module info
StringBuilder info = new StringBuilder("[Started] MyFaces CODI (Extensions CDI) Core");
info.append(getCodiCoreInformation());
info.append(separator);
if(cdiVersion != null)
{
info.append(cdiVersion);
info.append(separator);
}
info.append(separator);
info.append("project-stage: ");
info.append(this.projectStage.toString());
info.append(separator);
info.append("project-stage class: ");
info.append(this.projectStage.getClass().getName());
info.append(separator);
info.append(separator);
//application info
String systemProperties = getSystemPropertiesForCodi();
if(systemProperties != null)
{
info.append("system-properties:");
info.append(separator);
info.append(systemProperties);
}
String applicationParameters = getApplicationParameters(startupEvent);
if(applicationParameters != null)
{
info.append("application-parameters:");
info.append(separator);
info.append(applicationParameters);
}
//module config
info.append(getConfigInfo(this.codiCoreConfig));
this.logger.info(info.toString());
}
//avoid that this log harms the startup
catch (Exception e)
{
this.logger.log(Level.WARNING, "Core-Module couldn't log the current configuration." +
"Startup will continue!", e);
}
}