{"id":36418132,"url":"https://github.com/dev-jonghoonpark/spring-http-logger","last_synced_at":"2026-01-11T17:01:21.988Z","repository":{"id":300523776,"uuid":"1006359048","full_name":"dev-jonghoonpark/spring-http-logger","owner":"dev-jonghoonpark","description":"This library assists logging for Spring HTTP clients (RestClient, WebClient).","archived":false,"fork":false,"pushed_at":"2025-06-22T15:04:41.000Z","size":161,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-12T09:17:41.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-jonghoonpark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-22T04:52:17.000Z","updated_at":"2025-06-22T14:53:20.000Z","dependencies_parsed_at":"2025-06-22T07:41:40.810Z","dependency_job_id":null,"html_url":"https://github.com/dev-jonghoonpark/spring-http-logger","commit_stats":null,"previous_names":["dev-jonghoonpark/spring-http-logger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-jonghoonpark/spring-http-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-jonghoonpark%2Fspring-http-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-jonghoonpark%2Fspring-http-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-jonghoonpark%2Fspring-http-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-jonghoonpark%2Fspring-http-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-jonghoonpark","download_url":"https://codeload.github.com/dev-jonghoonpark/spring-http-logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-jonghoonpark%2Fspring-http-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-11T17:00:50.109Z","updated_at":"2026-01-11T17:01:21.972Z","avatar_url":"https://github.com/dev-jonghoonpark.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-http-logger\n\nThis library assists logging for Spring HTTP clients (RestClient, WebClient).\n\n## Download\n\n### Gradle\n\n```groovy\nimplementation 'com.jonghoonpark:spring-http-logger:1.0.0'\n```\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.jonghoonpark\u003c/groupId\u003e\n    \u003cartifactId\u003espring-http-logger\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## How to use\n\n### RestClient\n\nUse `ClientLoggerRequestInterceptor`.\n\n```java\nRestClient restClient = RestClient.builder()\n    .requestInterceptor(new ClientLoggerRequestInterceptor())\n    .build();\n```\n\n### WebClient (reactive)\n\nUse `LoggingClientHttpConnector` and `RequestLoggingExchangeFilterFunction`.\n\n```java\nWebClient webClient = WebClient.builder()\n    .clientConnector(new LoggingClientHttpConnector())\n    .filter(RequestLoggingExchangeFilterFunction.logRequest())\n    .build();\n```\n\n### Examples in Action\n\n![request-logging](https://raw.githubusercontent.com/dev-jonghoonpark/spring-http-logger/refs/heads/main/docs/request-logging.jpg)\n\n![response-logging](https://raw.githubusercontent.com/dev-jonghoonpark/spring-http-logger/refs/heads/main/docs/response-logging.jpg)\n\n### Logging config\n\n`request/response bodies` are configured to be logged at the `INFO` level.\nIf you also want to see `request/response headers`, set the logging level to `DEBUG`.\n\n```\nlogging.level.com.jonghoonpark=debug\n```\n\n## reference\n- Portions of the code are adapted from:\n  - rest client: https://github.com/spring-projects/spring-ai/issues/883#issuecomment-2739772323\n  - web client (reactive): https://stackoverflow.com/a/73154616/29672082\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-jonghoonpark%2Fspring-http-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-jonghoonpark%2Fspring-http-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-jonghoonpark%2Fspring-http-logger/lists"}