We usually create a MyClientManaged class and have a static logger inside.
Logging works fine in that case.

On Wednesday, August 31, 2016 at 3:36:56 AM UTC-7, Paolo Simonazzi wrote:
>
> Hi,
> it seems that logging is not available anymore when the stop() method of a 
> Managed object is called.
> For example, registering the following managed object does not print any 
> log on stop:
>
> environment.lifecycle().manage(new Managed() {
>   @Override
>   public void start() throws Exception {
>                 
>   }
>
>   @Override
>   public void stop() throws Exception {
>     logger.info("stopped");
>   }
> });
>
> Also, if an exception occurs inside stop() it is not logged.
> Is there a way to make logging working?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to