You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Arnie Morein <ar...@mac.com> on 2018/02/19 23:02:47 UTC
Creating Loggers - no effect
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-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org