I am having issues creating loggers in a manually configured context.

I have created a new context with appenders and they can be access via the 
BuiltConfiguration.

But none of my loggers appear to be being added to the configuration.

The calls I am making are:


        AppenderRefComponentBuilder appender = 
builder.newAppenderRef("logger-name");
        
        LoggerComponentBuilder logger = builder.newLogger(loggerName, level);
        logger.add(appender);
        logger.build();
        
        builder.add(logger);

What’s wrong?


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to