Skip to content

Commit 7ab92e0

Browse files
author
karthikeyan
committed
2 parents c06206f + 52fcf89 commit 7ab92e0

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

README.adoc

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,57 @@ image::https://travis-ci.org/karthy86/payload-logging.svg?branch=master[Build St
22

33
## payload-logging
44

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.
66

77
## Dependencies
88

99
```
10-
compile ("io.oneclicklabs.logging:payload-logging:0.0.1-SNAPSHOT")
10+
compile ("io.oneclicklabs.logging:payload-logging:0.0.1-SNAPSHOT")
1111

1212
```
1313

1414
## Usage
1515

16-
### Enable payload-logging
16+
### Enable payload-logging - Add below property to your application.properties file
1717

1818
```
19-
payload.logger.enabled=true
19+
payload.logger.enabled=true
2020

2121
```
2222

2323
### Injecting the LogWriterManager & adding Interceptors
2424

2525
```
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)
2936
{
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));
3938
}
39+
}
4040

4141
```
4242

43+
### Demo Project
44+
45+
https://github.com/oneclicklabs-devxchange/loging-demo.git[logging-demo]
46+
4347
## Release History
4448

45-
* 0.0.1-SNAPSHOT
49+
** 0.0.1-SNAPSHOT
4650
* logging rest verb & payload to console.
4751

4852
## Meta
53+
Karthikeyan Sadayamuthu – https://www.linkedin.com/in/karthy86/[LinkedIn]
4954

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]
5556

5657
## Contributing
5758

0 commit comments

Comments
 (0)