{"id":28619031,"url":"https://github.com/php-fig/log-util","last_synced_at":"2025-06-12T04:20:06.702Z","repository":{"id":38396444,"uuid":"375752792","full_name":"php-fig/log-util","owner":"php-fig","description":"A split package to host all the utility code related to PSR-3 (Logger Interface)","archived":false,"fork":false,"pushed_at":"2022-01-22T20:35:27.000Z","size":32,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-05-09T09:12:40.593Z","etag":null,"topics":["psr-3","utility-package"],"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/php-fig.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}},"created_at":"2021-06-10T15:52:19.000Z","updated_at":"2023-11-24T08:03:00.000Z","dependencies_parsed_at":"2022-08-09T03:16:31.177Z","dependency_job_id":null,"html_url":"https://github.com/php-fig/log-util","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/php-fig/log-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fig%2Flog-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fig%2Flog-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fig%2Flog-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fig%2Flog-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-fig","download_url":"https://codeload.github.com/php-fig/log-util/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fig%2Flog-util/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259395543,"owners_count":22850851,"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":["psr-3","utility-package"],"created_at":"2025-06-12T04:19:51.156Z","updated_at":"2025-06-12T04:20:06.682Z","avatar_url":"https://github.com/php-fig.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSR - Log Util\nUtilities for the [`psr/log`][] package that backs the [PSR-3][] specification.\n\n * `Psr\\Log\\Test\\LoggerInterfaceTest` provides a base test class for ensuring compliance with the LoggerInterface.\n * `Psr\\Log\\Test\\TestLogger` is a mock class for testing purposes.\n\n## Installation\n\nThis package should be used only for tests.\n\nFor PHP 8.0+ only, you may remove support for `psr/log: 1.x`:\n\n```json\n{\n  \"require\": {\n    \"php\": \"\u003e=8.0.0\",\n    \"psr/log\": \"^2.0 | ^3.0\"\n  },\n  \"require-dev\": {\n    \"psr/log-utils\": \"^1.1\"\n  }\n}\n```\n\nIf the project supports older versions of PHP:\n\n```json\n{\n  \"require\": {\n    \"psr/log\": \"^1.1.14 | ^2.0\"\n  },\n  \"require-dev\": {\n    \"psr/log-utils\": \"^1.0\"\n  }\n}\n```\n\n\u003e **Note:** In `psr/log: 3.0.0`, `Psr\\Log\\LoggerInterface` has union types for method arguments.\n\u003e Implementing this interface with PHP 7 compatibility is not possible.\n\n## Versions\n\nThe version of `psr/log-utils` that is installed after composer dependencies resolution varies with the version of `psr/log`.\n\n| psr/log       | psr/log-utils |                                                 |\n|---------------|---------------|-------------------------------------------------|\n| `^1.1.14`     | `1.0.*`       | Empty package, classes a provided by `psr/log`. |\n| `^2.0\\|^3.0`  | `^1.1`        | Imports test classes removed from `psr/log`.    |\n\n[`psr/log`]: https://packagist.org/packages/psr/log\n[PSR-3]: https://www.php-fig.org/psr/psr-3/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-fig%2Flog-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-fig%2Flog-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-fig%2Flog-util/lists"}