I've got a program that has a log4j configuration written in XML. I am trying to modify the original application, and attempting to improve upon the previous logger config. 

Since I cannot modify the xml file itself, I want to be able to generate a new configuration through the `ConfigurationBuilderFactory`, and use it alongside the other config. The only issue is that, I am unable to accomplish this. It does not seem to want to work with both.

What can I do?

The following is my code, greatly simplified:

```java
/**
 * Internally uses {@link org.apache.logging.log4j.Logger}
 */
public final class MyLogger {
    private static final LoggerContext context;

    static {
        ConfigurationBuilder<BuiltConfiguration> builder = ConfigurationBuilderFactory.newConfigurationBuilder();
        {
            builder.setStatusLevel(WARN);

            AppenderComponentBuilder console = builder.newAppender("SysOut", "Console");
            console.addAttribute(...);
            console.add(builder.newLayout(...).addAttribute(...));
            builder.add(console);

            // ... more configuration below
        }

        context = Configurator.initialize(builder.build()); // only works if no previous config exists, but will not replace an old config
    }
}

// later on...

context.getLogger("MyLogger"); // uses the xml config, not the one written above

```