-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Karthikeyan Sadayamuthu edited this page Nov 11, 2017
·
1 revision
payload-logging framework provides simplified configuration to log payload for spring project.
compile ("io.oneclicklabs.logging:payload-logging:0.0.2-SNAPSHOT")
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));
}
}
https://github.com/oneclicklabs-devxchange/loging-demo.git[logging-demo]
** 0.0.2-SNAPSHOT * adding feature to enable/disable payload logging
** 0.0.1-SNAPSHOT * logging rest verb & payload to console.
Karthikeyan Sadayamuthu – https://www.linkedin.com/in/karthy86/[LinkedIn]
Distributed under the Apache License. See LICENSE
for more information. https://github.com/karthy86/payload-logging/blob/master/LICENSE[license]
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D