@Override
    public void deprecated(String message, Object... params) {
        logger.warn(message, params);
    }
@Test
    public void testDeprecationLoggerWriteOut_nested() throws IOException {
        final DefaultDeprecationLogger deprecationLogger = new DefaultDeprecationLogger(LogManager.getLogger("org.logstash.my_nested_logger"));

        // Exercise
        deprecationLogger.deprecated("Simple deprecation message");

        String logs = LogTestUtils.loadLogFileContent("logstash-deprecation.log");
        assertTrue("Deprecation logs MUST contains the out line", logs.matches(".*\\[org\\.logstash\\.deprecation\\.my_nested_logger.*\\].*Simple deprecation message"));
    }