Skip to content

Commit

Permalink
fixed logback configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Cerbo committed Nov 14, 2016
1 parent 31bc725 commit a966ad1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</encoder>
</appender>

<root level="INFO" name="${package}">
<appender-ref ref="STDOUT"/>
</root>
<logger level="INFO" name="${package}">
<appender-ref ref="CORRELATION_ID"/>
</logger>

</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.nutcore.nut.correlationid;

import javax.enterprise.inject.Produces;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;

/**
* Created by davidecerbo on 14/11/2016.
*/
public class ClientProducer
{
@Produces
public Client newClient()
{
return ClientBuilder
.newClient()
.register(new CorrelationIdClientRequestFilter());
}
}

0 comments on commit a966ad1

Please sign in to comment.