{"id":15692607,"url":"https://github.com/llaville/monolog-callbackfilterhandler","last_synced_at":"2025-05-07T23:20:50.841Z","repository":{"id":30691400,"uuid":"34247344","full_name":"llaville/monolog-callbackfilterhandler","owner":"llaville","description":"Monolog handler wrapper that filters records based on a list of callback functions","archived":false,"fork":false,"pushed_at":"2023-11-10T06:10:35.000Z","size":58,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T15:41:52.802Z","etag":null,"topics":["monolog-handler"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"yi12345/TravianZ","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/llaville.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2015-04-20T08:10:55.000Z","updated_at":"2022-08-07T03:44:12.000Z","dependencies_parsed_at":"2024-06-21T07:25:47.421Z","dependency_job_id":null,"html_url":"https://github.com/llaville/monolog-callbackfilterhandler","commit_stats":{"total_commits":38,"total_committers":3,"mean_commits":"12.666666666666666","dds":0.1578947368421053,"last_synced_commit":"abefa962cf2067e2b1edaa2e4a0f2177fd1c31e8"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llaville%2Fmonolog-callbackfilterhandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llaville%2Fmonolog-callbackfilterhandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llaville%2Fmonolog-callbackfilterhandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llaville%2Fmonolog-callbackfilterhandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llaville","download_url":"https://codeload.github.com/llaville/monolog-callbackfilterhandler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252968833,"owners_count":21833364,"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":["monolog-handler"],"created_at":"2024-10-03T18:36:24.690Z","updated_at":"2025-05-07T23:20:50.807Z","avatar_url":"https://github.com/llaville.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CallbackFilterHandler for Monolog\n\n| Stable |\n|:------:|\n| [![Latest Stable Version](https://img.shields.io/packagist/v/bartlett/monolog-callbackfilterhandler)](https://packagist.org/packages/bartlett/monolog-callbackfilterhandler) |\n| [![Minimum PHP Version)](https://img.shields.io/packagist/php-v/bartlett/monolog-callbackfilterhandler)](https://php.net/) |\n| [![Branch Master](https://img.shields.io/badge/branch-master-blue)](https://github.com/llaville/monolog-callbackfilterhandler) |\n| [![Tests](https://github.com/llaville/php-compatinfo-db/workflows/Tests/badge.svg)](https://github.com/llaville/monolog-callbackfilterhandler/actions) |\n\n\n## Requirements\n\nThis handler works with PHP 7.2 or above, use release 1.0.0 for PHP 5.3+ support\n\n## Installation\n\nThe recommended way to install this library is [through composer](http://getcomposer.org).\nIf you don't know yet what is composer, have a look [on introduction](http://getcomposer.org/doc/00-intro.md).\n\n```bash\ncomposer require bartlett/monolog-callbackfilterhandler\n```\n\n## Support\n\n- release 1.0.0 is not maintained except for bug report, and will accept only Monolog v1.\n- release 2.0.0 is the current active version, and accept only Monolog v2\n\n## Documentation\n\n- release 1.0.0 is fully documented at \u003chttp://php5.laurent-laville.org/callbackfilterhandler/\u003e\n\n## Features\n\n* This handler obey first to basic Monolog rules as `handler level` and `bubble`.\n* Then, in second time, logs are filtered by rules defined in one or more callback functions.\n\nMain difference with [FilterHandler](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Handler/FilterHandler.php)\nincluded in standard Monolog distribution since version 1.8.0\n\n* `FilterHandler` can just filter records and only allow those of a given list of levels through to the wrapped handler.\n* `CallbackFilterHandler` may filter records to the wrapped handler, on each standard record elements including extra data and logging context.\n\n## Example\n\nHere is a basic setup to log all events to a file and most important to another one (or notify by mail).\nSee [examples/basic.php](https://github.com/llaville/monolog-callbackfilterhandler/blob/master/examples/basic.php) file.\n\n## Authors\n\n* Laurent Laville (Lead Developer)\n* Christophe Coevoet (suggested the code base on discussion of Monolog\n[PR#411](https://github.com/Seldaek/monolog/pull/411#issuecomment-53413159))\n\n## License\n\nThis handler is licensed under the BSD-3-clauses License - see the [LICENSE](https://github.com/llaville/monolog-callbackfilterhandler/blob/master/LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllaville%2Fmonolog-callbackfilterhandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllaville%2Fmonolog-callbackfilterhandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllaville%2Fmonolog-callbackfilterhandler/lists"}