@@ -2,56 +2,57 @@ image::https://travis-ci.org/karthy86/payload-logging.svg?branch=master[Build St
2
2
3
3
## payload-logging
4
4
5
- Payload Logging Framework provides simplified configuration to log payload for spring project.
5
+ payload-logging framework provides simplified configuration to log payload for spring project.
6
6
7
7
## Dependencies
8
8
9
9
```
10
- compile ("io.oneclicklabs.logging:payload-logging:0.0.1-SNAPSHOT")
10
+ compile ("io.oneclicklabs.logging:payload-logging:0.0.1-SNAPSHOT")
11
11
12
12
```
13
13
14
14
## Usage
15
15
16
- ### Enable payload-logging
16
+ ### Enable payload-logging - Add below property to your application.properties file
17
17
18
18
```
19
- payload.logger.enabled=true
19
+ payload.logger.enabled=true
20
20
21
21
```
22
22
23
23
### Injecting the LogWriterManager & adding Interceptors
24
24
25
25
```
26
- @Configuration
27
- @EnableWebMvc
28
- public class AppConfig extends WebMvcConfigurerAdapter
26
+ @Configuration
27
+ @EnableWebMvc
28
+ public class AppConfig extends WebMvcConfigurerAdapter
29
+ {
30
+ @Autowired
31
+ @Qualifier("manager.logwriter")
32
+ private LogWriterManager logWriterManager;
33
+
34
+ @Override
35
+ public void addInterceptors(InterceptorRegistry registry)
29
36
{
30
- @Autowired
31
- @Qualifier("manager.logwriter")
32
- private LogWriterManager logWriterManager;
33
-
34
- @Override
35
- public void addInterceptors(InterceptorRegistry registry)
36
- {
37
- registry.addInterceptor(new RestTransactionInterceptor(logWriterManager));
38
- }
37
+ registry.addInterceptor(new RestTransactionInterceptor(logWriterManager));
39
38
}
39
+ }
40
40
41
41
```
42
42
43
+ ### Demo Project
44
+
45
+ https://github.com/oneclicklabs-devxchange/loging-demo.git[logging-demo]
46
+
43
47
## Release History
44
48
45
- * 0.0.1-SNAPSHOT
49
+ ** 0.0.1-SNAPSHOT
46
50
* logging rest verb & payload to console.
47
51
48
52
## Meta
53
+ Karthikeyan Sadayamuthu – https://www.linkedin.com/in/karthy86/[LinkedIn]
49
54
50
- Karthikeyan Sadayamuthu – [@karthy86](https://www.linkedin.com/in/karthy86/) – ksadayamuthu@gmail.com
51
-
52
- Distributed under the Apache License. See ``LICENSE`` for more information.
53
-
54
- [https://github.com/karthy86/payload-logging/blob/master/LICENSE](https://github.com/karthy86/payload-logging)
55
+ Distributed under the Apache License. See ``LICENSE`` for more information. https://github.com/karthy86/payload-logging/blob/master/LICENSE[license]
55
56
56
57
## Contributing
57
58
0 commit comments