{"id":17049657,"url":"https://github.com/lukashromadnik/alamofirenetworklogger","last_synced_at":"2025-03-23T04:25:54.934Z","repository":{"id":61403233,"uuid":"550274416","full_name":"LukasHromadnik/AlamofireNetworkLogger","owner":"LukasHromadnik","description":"Simple request / response logger for Alamofire 5.","archived":false,"fork":false,"pushed_at":"2024-11-26T07:00:34.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-28T10:49:35.381Z","etag":null,"topics":["alamofire","ios","logging","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LukasHromadnik.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}},"created_at":"2022-10-12T13:36:53.000Z","updated_at":"2024-11-26T07:00:38.000Z","dependencies_parsed_at":"2024-11-26T08:19:08.396Z","dependency_job_id":"d9d2f8fd-0bfa-47ff-9c41-2cda3c884d31","html_url":"https://github.com/LukasHromadnik/AlamofireNetworkLogger","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasHromadnik%2FAlamofireNetworkLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasHromadnik%2FAlamofireNetworkLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasHromadnik%2FAlamofireNetworkLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasHromadnik%2FAlamofireNetworkLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LukasHromadnik","download_url":"https://codeload.github.com/LukasHromadnik/AlamofireNetworkLogger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245054721,"owners_count":20553563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["alamofire","ios","logging","swift"],"created_at":"2024-10-14T09:55:05.257Z","updated_at":"2025-03-23T04:25:54.909Z","avatar_url":"https://github.com/LukasHromadnik.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AlamofireNetworkLogger\n\nSimple request / response logger for Alamofire 5.\n\n```\n⬆️ POST 'https://ackee.cz/examples'\nHeaders: [\n    Accept-Encoding : gzip;q=1.0, compress;q=0.5\n    Accept-Language : en-US;q=1.0\n    Content-Type : application/json\n    User-Agent : Reqres_Example/org.cocoapods.demo.Reqres-Example (1; OS Version 9.3 (Build 13E230))\n    Content-Length : 13\n]\nBody: {\n    \"foo\" : \"bar\"\n}\n\n...\n\n⬇️ POST https://ackee.cz/examples (✅ 201 Created) [0.54741 s]\nHeaders: [\n    Vary : Authorization,Accept-Encoding\n    Content-Encoding : gzip\n    Content-Length : 13\n    Server : Apache\n    Content-Type : application/json\n    Date : Mon, 05 Sep 2016 07:33:51 GMT\n    Cache-Control : no-cache\n]\nBody: {\n    \"foo\" : \"bar\"\n}\n```\n\n## Installation\n\n### Carthage\n\n```\ngithub LukasHromadnik/AlamofireNetworkLogger\n```\n\n## Usage\n\nAlamofireNetworkLogger is a direct implementation of Alamofire's `EventMonitor`. To integrate it you need to pass it to `Session`\n\n```swift\nlet logger = AlamofireNetworkLogger(logLevel: .verbose)\nlet session = Session(eventMonitors: [logger])\n```\n\nand then make the request using the `session` property\n\n```swift\nsession.request(...)\n```\n\n## Configuration\n\nRight now the only possible configuration is `logLevel` and it's passed to AlamofireNetworkLogger during initialization.\n\n| Value | Description |\n| ---   | ---         |\n| `.none` | Nothing will be printed to the console |\n| `.light` | Only the URL, status code and duration time will be printed |\n| `.verbose` | Everything will appear in the console |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukashromadnik%2Falamofirenetworklogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukashromadnik%2Falamofirenetworklogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukashromadnik%2Falamofirenetworklogger/lists"}