# Http Log Module
Print logs of http request using spring aop
### Instructions
* Dependency
```xml
com.uas.ps
ps-httplog
0.0.1-SNAPSHOT
```
* Configuration
```java
@EnableHttpLog
public class Application {
// code
}
```
* HTTP api
```java
@RestController
@RequestMapping("/api")
public class MyApi{
@GetMapping("/test/{id}")
@HttpLog(exclude = {"age"}, includeHeaders = {"name"}, excludeResult = true)
public Map test(@PathVariable("id") int id,
@RequestParam("age") int age,
@RequestHeader("name") String name,
@RequestHeader("password") String password){
Map result = new HashMap<>();
result.put("id", id);
result.put("age", age);
result.put("name", name);
result.put("password", password);
return result;
}
}
```