diff --git a/README.md b/README.md
index 6f991ce..11e1ea7 100644
--- a/README.md
+++ b/README.md
@@ -12,10 +12,10 @@ communication into one log entry.
## Old bad Logger
-All parts are separeted from each other:
+All parts are separated from each other:
1) Request:
1) request headers - every header is put into separated entry
- 2) requst body - at separated entry
+ 2) request body - at separated entry
2) Response:
1) response headers - separately
2) response body - at separated entry as well
@@ -99,17 +99,17 @@ for Maven
me.bvn13.openfeign.logger
feign-normalized-logger
- 0.1.0
+ 0.1.4
```
for Gradle
```groovy
-implementation 'me.bvn13.openfeign.logger:feign-normalized-logger:0.1.0'
+implementation 'me.bvn13.openfeign.logger:feign-normalized-logger:0.1.4'
```
-## 2) Create Feign configuration and enable logger
+## 2) Create Feign configuration and enable logger + specify FULL logging level
```java
import feign.Logger;
@@ -120,6 +120,11 @@ public class MyFeignConfig {
public Logger logger() {
return new NormalizedFeignLogger();
}
+
+ @Bean
+ public Logger.Level logLevel() {
+ return Logger.Level.FULL;
+ }
}
```
@@ -140,15 +145,5 @@ for Slf4J + Logback
```yaml
logging:
level:
- me.bvn13.openfeign.logger.NormalizedFeignLogger: DEBUG
+ me.bvn13.openfeign.logger.NormalizedFeignLogger: INFO
```
-
-### 5) Don't forget to specify FULL log level for your API class
-
-```yaml
-feign:
- client:
- config:
- auth:
- logger-level: FULL
-```
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index bd869cd..8817262 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
me.bvn13.openfeign.logger
feign-normalized-logger
- 0.1.3
+ 0.1.4
jar
diff --git a/publish.sh b/publish.sh
new file mode 100755
index 0000000..6c40cd8
--- /dev/null
+++ b/publish.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+./mvnw gitflow:release-start gitflow:release-finish
+
+git push origin master
+
+git push --tags
+
+git push origin develop
+
+read -p "Which version to publish? > " version
+
+git checkout $version
+
+./mvnw deploy -Prelease
\ No newline at end of file
diff --git a/src/main/java/me/bvn13/openfeign/logger/normalized/NormalizedFeignLogger.java b/src/main/java/me/bvn13/openfeign/logger/normalized/NormalizedFeignLogger.java
index 017a6a1..3fc388f 100644
--- a/src/main/java/me/bvn13/openfeign/logger/normalized/NormalizedFeignLogger.java
+++ b/src/main/java/me/bvn13/openfeign/logger/normalized/NormalizedFeignLogger.java
@@ -95,7 +95,7 @@ public class NormalizedFeignLogger extends feign.Logger {
}
private void showLogs(String configKey) {
- log.debug("normalized feign request " + methodName.get() + ": [\n" +
+ log.info("Normalized feign request " + methodName.get() + ": [\n" +
collectionToDelimitedString(logsRequest.get().getOrDefault(configKey, Collections.emptyList()), "\n") +
"\n] has response [\n" +
collectionToDelimitedString(logsResponse.get().getOrDefault(configKey, Collections.emptyList()), "\n") +