payload-logging framework provides simplified configuration to log payload for spring project.
io.oneclicklabs.logging.enabled=true
io.oneclicklabs.logging.request.enabled=true
io.oneclicklabs.logging.response.enabled=true
@Configuration
@EnableWebMvc
public class AppConfig extends WebMvcConfigurerAdapter
{
@Autowired
@Qualifier("manager.logwriter")
private LogWriterManager logWriterManager;
@Override
public void addInterceptors(InterceptorRegistry registry)
{
registry.addInterceptor(new RestTransactionInterceptor(logWriterManager));
}
}
-
0.0.2-SNAPSHOT
-
adding feature to enable/disable payload logging
-
-
0.0.1-SNAPSHOT
-
logging rest verb & payload to console.
-