{"id":29196599,"url":"https://github.com/flancer32/mage2_ext_log_api","last_synced_at":"2026-03-02T21:09:05.617Z","repository":{"id":62505334,"uuid":"147524258","full_name":"flancer32/mage2_ext_log_api","owner":"flancer32","description":"Magento 2 activities logger (API, JS errors) ","archived":false,"fork":false,"pushed_at":"2020-04-09T04:47:32.000Z","size":345,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T16:39:51.059Z","etag":null,"topics":["developer-tools","logging","magento2-module"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flancer32.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-05T13:43:09.000Z","updated_at":"2023-01-06T14:08:10.000Z","dependencies_parsed_at":"2022-11-02T10:02:08.811Z","dependency_job_id":null,"html_url":"https://github.com/flancer32/mage2_ext_log_api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/flancer32/mage2_ext_log_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_log_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_log_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_log_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_log_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flancer32","download_url":"https://codeload.github.com/flancer32/mage2_ext_log_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_log_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274397087,"owners_count":25277398,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["developer-tools","logging","magento2-module"],"created_at":"2025-07-02T06:07:43.697Z","updated_at":"2026-03-02T21:09:05.582Z","avatar_url":"https://github.com/flancer32.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mage2_ext_log_api\n\nAdd ability to log:\n\n* REST API requests/responses to server side logs.\n* client side JS errors to browser's local storage (with ability to display these errors on the special page).\n\nCompatible Magento versions: **2.2.x, 2.3.x**.\n\n\n### REST API Sample\n\nSee logs in `${MAGE_ROOT}/var/log/api.log`:\n\n```log\n2018-09-05 15:08:57-API.INFO - Route: '/rest/ru/V1/guest-carts/fe9cf0d8828fcb219484b39c12b8cdb7/estimate-shipping-methods' =\u003e '/V1/guest-carts/fe9cf0d8828fcb219484b39c12b8cdb7/estimate-shipping-methods'\n2018-09-05 15:08:57-API.INFO - Request: {\"address\":{\"region_id\":null,\"country_id\":\"US\",\"postcode\":null},\"cartId\":\"fe9cf0d8828fcb219484b39c12b8cdb7\"}\n2018-09-05 15:08:57-API.INFO - Response 'Magento\\Quote\\Api\\GuestShipmentEstimationInterface::estimateByExtendedAddress()': [{\"carrier_code\":\"flatrate\",\"method_code\":\"flatrate\",\"carrier_title\":\"Flat Rate\",\"method_title\":\"Fixed\",\"amount\":2000,\"base_amount\":2000,\"available\":true,\"error_message\":\"\",\"price_excl_tax\":2000,\"price_incl_tax\":2000}]\n```\n\n\n### Frontend Sample\n\n![front js view](./etc/docs/img/front_js_error.png)\n\nGo to `http://.../fl32log/js/view/`:\n\n![front js view](./etc/docs/img/front_js_view.png)\n\n\n\n## Module Configuration\n\n\n### Enable additional logging\n\nSee `Store / Configuration / Advanced / System / Advanced Logging Settings`:\n\n![store config](./etc/docs/img/store_config.png)\n\n\n### Disable \"Log JS Errors to Session Storage\"\n\nYou need to disable \"Log JS Errors to Session Storage\" that is used for Magento tests (disabled by default).\nSee `Store / Configuration / Advanced / Developer / JavaScript Settings / Log JS Errors to Session Storage`:\n\n![store config disable](./etc/docs/img/store_config_disable.png)\n\nAttention: section `Store / Configuration / Advanced / Developer` is available in `developer` mode only:\n\n```bash\n$ ./bin/magento deploy:mode:set developer\n```\n\n\n\n## Installation\n\n```bash\n$ cd ${MAGE_ROOT}\n$ composer require flancer32/mage2_ext_log_api\n$ ./bin/magento module:enable Flancer32_LogApi\n```\n\nif Magento is in `development` mode:\n```bash\n$ ./bin/magento setup:upgrade\n$ ./bin/magento setup:di:compile\n```\n\nif Magento is in `production` mode:\n```bash\n$ ./bin/magento deploy:mode:set developer\n$ ./bin/magento deploy:mode:set production\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflancer32%2Fmage2_ext_log_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflancer32%2Fmage2_ext_log_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflancer32%2Fmage2_ext_log_api/lists"}