Logger Support
@@ -122,10 +122,16 @@ public class Activator extends AbstractExtender
super.stop( context );
}
catch ( final Exception e )
+ {
+ // logger might be null
+ if ( logger != null )
{
logger.log(LogService.LOG_ERROR, "Exception stopping during restart", e);
}
}
+ // reinstantiate logger
+ logger = new ScrLogger(m_configuration, m_context);
+ }
try
{
logger.log(LogService.LOG_INFO, "Starting with globalExtender setting: {0}", null, globalExtender);
