Added optional scope to log4j InstrumentedAppender