{"id":37772790,"url":"https://github.com/akshit-arora/dblog","last_synced_at":"2026-01-16T14:55:16.977Z","repository":{"id":58565597,"uuid":"532476572","full_name":"akshit-arora/dblog","owner":"akshit-arora","description":"Laravel package to log heavy database queries","archived":false,"fork":false,"pushed_at":"2022-09-18T16:34:41.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-26T10:18:57.842Z","etag":null,"topics":["database","devtools","laravel","laravel-package","logger","logging","query"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akshit-arora.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":"2022-09-04T08:07:36.000Z","updated_at":"2022-11-24T00:57:39.000Z","dependencies_parsed_at":"2022-09-07T17:24:24.133Z","dependency_job_id":null,"html_url":"https://github.com/akshit-arora/dblog","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/akshit-arora/dblog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshit-arora%2Fdblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshit-arora%2Fdblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshit-arora%2Fdblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshit-arora%2Fdblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akshit-arora","download_url":"https://codeload.github.com/akshit-arora/dblog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshit-arora%2Fdblog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["database","devtools","laravel","laravel-package","logger","logging","query"],"created_at":"2026-01-16T14:55:16.909Z","updated_at":"2026-01-16T14:55:16.970Z","avatar_url":"https://github.com/akshit-arora.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel DB Log Library\n\n![GitHub](https://img.shields.io/github/license/akshit-arora/dblog?logoColor=green)\n\nA simple Laravel library for devs to log your heavy queries bifurcated by the time taken in your application.\n\n## Useful when\n- You want to track the queries which are making your application slow.\n- You want to monitor the application for the queries which is taking way longer than expected.\n- You want to find the slow pages in your application\n\n## Features\n- Bifurcates the logs datewise so that you can know on what day was your application slow.\n- You can also bifurcate the logs based on time taken by the query.\n\n## Install\n\n    composer require akshitarora/dblog\n\nAdd the ServiceProvider in `app.php`\n\n    AkshitArora\\DbLog\\DbLogServiceProvider::class,\n\n## Log structure\n\n`[database-name] [time-taken s] SELECT SQL QUERY WHERE PARAMETERS='VALUE' || Path METHOD: /slow/page/here`\n\n## Configuration\n\nPublish `dblog.php` configuration file into `/config/` for configuration customization:\n\n    php artisan vendor:publish --provider=AkshitArora\\DbLog\\DbLogServiceProvider\n\n### Configuration options\n\n    \u003c?php\n\n    return [\n        'enabled' =\u003e env('DBLOG_ENABLED', env('APP_ENV') === 'local'),\n\n        // Only record queries that are slower than the following time\n        // Unit: seconds\n        'query_slower_than' =\u003e env('DBLOG_QUERY_SLOWER_THAN', 0),\n\n        // Only record queries when the DBLOG_TRIGGER is set in the environment,\n        // or when the trigger HEADER, GET, POST, or COOKIE variable is set.\n        'trigger' =\u003e env('DBLOG_TRIGGER'),\n\n        // Log storage location\n        'log_storage' =\u003e env('DBLOG_LOG_STORAGE',env('FILESYSTEM_DRIVER')),\n\n        // Time brackets in which the queries are to be bifurcated\n        'time_brackets' =\u003e [2,4,5],\n\n        // Set the path in the storage folder where logs need to be stored\n        'folder_path' =\u003e 'dblogs',\n    ];\n\n## WARNING\n\n**The library writes the slow SQL queries log in the storage folder. Please ensure that the storage folder is not publically accessible if you've kept this library in production.**\n\nSpecial thanks to the package: https://github.com/overtrue/laravel-query-logger\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshit-arora%2Fdblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakshit-arora%2Fdblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshit-arora%2Fdblog/lists"}