One way is to subclass the java.util.logging.Logger and require our subclassed type be passed into this class.

—Jonathan


On Mar 12, 2014, at 1:17 PM, Tobi Knaup <notifications@github.com> wrote:

> In src/main/scala/mesosphere/chaos/http/HttpService.scala:
> 
> > @@ -14,7 +15,14 @@ class HttpService @Inject()(val server : Server, val log : Logger) extends Abstr
> >  
> >    def startUp() {
> >      log.fine("Starting up HttpServer.")
> > -    server.start()
> > +    Try(
> > +      server.start()
> > +    ).recoverWith {
> > +      case e: java.net.BindException => {
> > +        log.severe(e.getMessage)
> How do you propose we do that?
> 
> —
> Reply to this email directly or view it on GitHub.
>