{"id":41993294,"url":"https://github.com/leowebguy/simple-logger","last_synced_at":"2026-01-26T00:47:24.147Z","repository":{"id":65407695,"uuid":"588159549","full_name":"leowebguy/simple-logger","owner":"leowebguy","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-30T22:16:18.000Z","size":118,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-16T10:39:30.949Z","etag":null,"topics":["craft-cms","craft-cms-plugin","craft-plugin","craft4","craft5","craftcms"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/leowebguy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-01-12T13:21:26.000Z","updated_at":"2024-12-04T13:13:28.000Z","dependencies_parsed_at":"2024-04-01T20:43:09.218Z","dependency_job_id":null,"html_url":"https://github.com/leowebguy/simple-logger","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"1f9eff5c57ce2b91405e0f346c757bdcaa208af0"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/leowebguy/simple-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leowebguy","download_url":"https://codeload.github.com/leowebguy/simple-logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fsimple-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28763019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["craft-cms","craft-cms-plugin","craft-plugin","craft4","craft5","craftcms"],"created_at":"2026-01-26T00:47:23.675Z","updated_at":"2026-01-26T00:47:24.136Z","avatar_url":"https://github.com/leowebguy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple Logger plugin for Craft CMS\n===\n\nPlugin for collecting exception handlers logs and reporting over email.\nA simple solution for those who can't or won't pay for corporate solution loggers like: New Relic, Dynatrace, Datadog and others.\n\n### If you don't receive daily emails, check:\n\n1. if your email setup is correct\n2. if simple logger plugin is active\n3. if you have exceptions older than a day in `storage/logs/simplelogger.json`\n\n### Install\n\n```bash\ncomposer require leowebguy/simple-logger \u0026\u0026 php craft plugin/install simple-logger\n```\n\n### Usage\n\nSet these two `.env` parameters to make sure Simple Logger is active\n\n```dotenv\n# Simple Logger\nLOGGER_ON=1\nLOGGER_EMAIL=john@email.com\n```\n\n`LOGGER_EMAIL` accept multiple emails `LOGGER_EMAIL=john@email.com,jane@@email.com`\n\nThe plugin will use the built-in craft event `EVENT_BEFORE_HANDLE_EXCEPTION` to handle\nexceptions, saving into a custom log file `storage/logs/simplelogger.json`\n\n```log\n[\n    {\n        \"time\": \"2023-01-21 17:37:21\",\n        \"sourcetype\": \"Exception 400\",\n        \"level_name\": \"ERROR\",\n        \"message\": \"TwigErrorRuntimeError: Calling unknown method: craftwebtwigvariablesCraftVariable::deviceDetect1() in /var/www/html/templates/index.twig:10\"\n    }\n]\n```\n\nUsing the same event above, Simple Logger will once a day (after 8pm) collect the report and send an email to `LOGGER_EMAIL` defined recipient\n\n![report](resources/report.png)\n\nSimple Logger won't collect `NotFoundHttpException` exceptions, mostly related to inexistent pages or resources\n\n### Feeling creative?\n\nPR into https://github.com/leowebguy/simple-logger\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fsimple-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleowebguy%2Fsimple-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fsimple-logger/lists"}