{"id":22092132,"url":"https://github.com/krakphp/psr-log-util","last_synced_at":"2025-03-23T23:44:58.825Z","repository":{"id":57009060,"uuid":"175721390","full_name":"krakphp/psr-log-util","owner":"krakphp","description":"PSR Log Utilities","archived":false,"fork":false,"pushed_at":"2019-03-15T00:44:16.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T06:52:27.634Z","etag":null,"topics":["log","log-util","logging","psr-3"],"latest_commit_sha":null,"homepage":null,"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/krakphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-15T00:38:40.000Z","updated_at":"2019-03-15T00:42:07.000Z","dependencies_parsed_at":"2022-08-21T13:10:46.857Z","dependency_job_id":null,"html_url":"https://github.com/krakphp/psr-log-util","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakphp%2Fpsr-log-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakphp%2Fpsr-log-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakphp%2Fpsr-log-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakphp%2Fpsr-log-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krakphp","download_url":"https://codeload.github.com/krakphp/psr-log-util/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245186924,"owners_count":20574554,"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":["log","log-util","logging","psr-3"],"created_at":"2024-12-01T03:08:25.225Z","updated_at":"2025-03-23T23:44:58.737Z","avatar_url":"https://github.com/krakphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSR Log Util\n\nThis library contains a set of utilities and decorators for PSR-3 Compatible loggers.\n\n## Installation\n\nInstall with composer at `krak/psr-log-util`\n\n## Usage\n\n### TemplateLogger\n\nThe TemplateLogger is a decorator that allows you to wrap a template around your log messages.\n\n```php\n\u003c?php\n\nuse Krak\\PsrLogUtil\\TemplateLogger;\n\n$logger = new SomePsr3Logger();\n$logger = new TemplateLogger('Acme: %s', $logger);\n$logger-\u003einfo(\"Hi\");\n// should output something like: Acme: Hi\n```\n\nThis can be very useful for prefixing certian logs to make them easier to search later on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrakphp%2Fpsr-log-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrakphp%2Fpsr-log-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrakphp%2Fpsr-log-util/lists"}