{"id":33962681,"url":"https://github.com/tameem-ahmad-com/logger","last_synced_at":"2026-04-06T07:02:45.744Z","repository":{"id":57028576,"uuid":"435479820","full_name":"Tameem-Ahmad-com/logger","owner":"Tameem-Ahmad-com","description":"Error notification package ","archived":false,"fork":false,"pushed_at":"2024-05-08T13:27:55.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T05:21:50.248Z","etag":null,"topics":["error-monitoring","error-reporting","laravel","laravel-package","logger","logging"],"latest_commit_sha":null,"homepage":"https://www.computan.com/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tameem-Ahmad-com.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":"contributing.md","funding":null,"license":"license.md","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}},"created_at":"2021-12-06T12:00:33.000Z","updated_at":"2024-04-24T12:55:44.000Z","dependencies_parsed_at":"2024-04-23T12:55:26.504Z","dependency_job_id":null,"html_url":"https://github.com/Tameem-Ahmad-com/logger","commit_stats":{"total_commits":128,"total_committers":3,"mean_commits":"42.666666666666664","dds":0.078125,"last_synced_commit":"ced14914f7388c6b44b91513034b35cecf64e813"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tameem-Ahmad-com/logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tameem-Ahmad-com%2Flogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tameem-Ahmad-com%2Flogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tameem-Ahmad-com%2Flogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tameem-Ahmad-com%2Flogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tameem-Ahmad-com","download_url":"https://codeload.github.com/Tameem-Ahmad-com/logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tameem-Ahmad-com%2Flogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31463015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["error-monitoring","error-reporting","laravel","laravel-package","logger","logging"],"created_at":"2025-12-12T22:06:35.939Z","updated_at":"2026-04-06T07:02:45.724Z","avatar_url":"https://github.com/Tameem-Ahmad-com.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Custom Log \u0026 Notifications\n\n🚀 **Laravel Custom Log \u0026 Notifications** is a robust logging and notification library designed for Laravel applications, offering seamless handling of exceptions and automatic error reporting.\n\n## Installation\n\n1. **Install the Package:** Use Composer to install the package:\n\n    ```bash\n    composer require notify/notification:\"dev-main\"\n    ```\n\n2. **Install AWS SES Package:** Use Composer to install the package:\n\n    ```bash\n    composer require aws/aws-sdk-php\n    ```\n\n3. **Publish Configuration:** Publish the configuration file:\n\n    ```bash\n    php artisan vendor:publish --provider=\"Notify\\\\LaravelCustomLog\\\\LaravelCustomLogServiceProvider\" --tag=config\n    ```\n\n4. **Publish MySQL Migration:** Publish the MySQL migration file:\n\n    ```bash\n    php artisan vendor:publish --provider=\"Notify\\\\LaravelCustomLog\\\\LaravelCustomLogServiceProvider\" --tag=migration\n    ```\n\n## Configuration Options\n\nConfigure the behavior of the package in the `config/custom-log.php` file. Here's a breakdown of the available options:\n\n- 🛠️ `dev-mode`: Enable/disable development mode.\n- 🛠️ `custom_log_mysql_enable`: Enable/disable logging to a MySQL database.\n- 🛠️ `mysql_table`: Define the table name for logging in the MySQL database.\n- 🛠️ `override_exception_handler`: Override the default Laravel exception handler.\n- 📧 `emails`: Configure email settings for error reports.\n- 📧 `pm-emails`: Specify project manager email addresses.\n- 📧 `dev-emails`: Specify developer email addresses for notifications.\n- ⚠️ `ignore_exceptions`: Specify exceptions and error codes to ignore.\n- 💾 `database_connection`: Define the database connection for logging.\n\n### SMTP/AWS SES Configuration\n\nTo use AWS SES for email notifications, configure the following environment variables in your `.env` file:\n\n```dotenv\nMAIL_MAILER=ses\nMAIL_HOST=\nMAIL_PORT=\nMAIL_USERNAME=\nMAIL_PASSWORD=\nMAIL_ENCRYPTION=tls\nMAIL_FROM_ADDRESS=\nMAIL_FROM_NAME=\"${APP_NAME}\"\n\nAWS_ACCESS_KEY_ID=\nAWS_SECRET_ACCESS_KEY=\nAWS_DEFAULT_REGION=\n```\n\n## Example to handle the exception internally\n\nDisable the exception override in `custom-log.php` and use your own logic in `Exceptions/Handler.php`.\n\nThe below example is handling all the database exception and ignore them to log\n\n```php\npublic function register()\n{\n    $this-\u003ereportable(function (Throwable $e) {\n        if ($e instanceof QueryException) {\n           return;\n        } \n        Notifications::error('exceptions', $e-\u003egetMessage(), $e-\u003egetTrace());\n    });\n}\n```\n\nOnce installed and configured, Laravel Custom Log \u0026 Notifications will handle exception reporting and notifications automatically according to your configuration settings.\n\n👍 Happy logging and notifying with Laravel Custom Log \u0026 Notifications!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameem-ahmad-com%2Flogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftameem-ahmad-com%2Flogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameem-ahmad-com%2Flogger/lists"}