what does MyConfigurationFactory look like?

*■ DOUGLAS E. WEGSCHEID* // Lead Analyst, Information Security
(269) 923-5278 // [email protected]

"A wrong note played hesitatingly is a wrong note. A wrong note played with
conviction is interpretation."

On Fri, Jun 10, 2016 at 3:30 AM, Jochen Wiedmann <[email protected]>
wrote:

> On Thu, Jun 9, 2016 at 2:45 PM, Remko Popma <[email protected]> wrote:
> > Do you have a stacktrace?
>
> Silly me. Of course, I have:
>
> Exception in thread "main" java.lang.NullPointerException: No
> Configuration was provided
> at java.util.Objects.requireNonNull(Objects.java:228)
> at
> org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:477)
> at
> org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:561)
> at
> org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:577)
> at
> org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:212)
> at
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
> at
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
> at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
> at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
> at demo.log4j.Main.main(Main.java:11)
>
> And here's the source code again, if you'd like to reproduce:
>
>
>     public static void main(String[] pArgs) {
>         ConfigurationFactory.setConfigurationFactory(new
> MyConfigurationFactory());
>         final Logger log = LogManager.getLogger(Main.class);
>         log.info("Starting");
>     }
>
>
>
> --
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

-- 
*NOTICE: Whirlpool Corporation e-mail is for the designated recipient only 
and may contain proprietary or otherwise confidential information. If you 
have received this e-mail in error, please notify the sender immediately 
and delete the original. Any other use or disclosure of the e-mail by you 
is unauthorized.*


Reply via email to