Skip to content

Commit 80fcdf1

Browse files
committed
add how change log level by API
1 parent a90882a commit 80fcdf1

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,29 @@ For deeper technical details about how Kafnus Connect is configured, built, and
102102

103103
👉 See [Technical Configuration Guide](./doc/technical_configuration.md)
104104

105+
106+
---
107+
108+
## 🛠️ Logging
109+
110+
There is a way to change log level of kafnus-connect using logger API.
111+
112+
For example to change from default (info) to debug some clases related with http connector like HttpSinkTask, AbstractHttpSender, BasicAuthHttpSender you can use:
113+
114+
```
115+
curl -s -X PUT -H "Content-Type: application/json" \
116+
http://localhost:8083/admin/loggers/io.aiven.kafka.connect.http.HttpSinkTask \
117+
-d '{"level":"DEBUG"}' | jq
118+
119+
curl -s -X PUT -H "Content-Type: application/json" \
120+
http://localhost:8083/admin/loggers/io.aiven.kafka.connect.http.sender.AbstractHttpSender \
121+
-d '{"level":"DEBUG"}' | jq
122+
123+
curl -s -X PUT -H "Content-Type: application/json" \
124+
http://localhost:8083/admin/loggers/io.aiven.kafka.connect.http.sender.BasicAuthHttpSender \
125+
-d '{"level":"DEBUG"}' | jq
126+
```
127+
105128
---
106129

107130
## 📚 Documentation

0 commit comments

Comments
 (0)