Do you have a stacktrace? Sent from my iPhone
> On 2016/06/09, at 20:09, Jochen Wiedmann <jochen.wiedm...@gmail.com> wrote: > > Hi, > > what is wrong with the following code, please (gives an NPE within > getLogger, MyConfigurationFactory is never being invoked). > > public static void main(String[] pArgs) { > ConfigurationFactory.setConfigurationFactory(new > MyConfigurationFactory()); > final Logger log = LogManager.getLogger(Main.class); > log.info("Starting"); > } > > Thanks, > > Jochen > > -- > The next time you hear: "Don't reinvent the wheel!" > > http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org