{"id":42383319,"url":"https://github.com/tyrellsys/cakephp-log","last_synced_at":"2026-01-27T22:40:14.125Z","repository":{"id":57074306,"uuid":"247697474","full_name":"tyrellsys/cakephp-log","owner":"tyrellsys","description":"CakePHP log ","archived":false,"fork":false,"pushed_at":"2020-03-16T12:35:37.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-20T02:48:25.796Z","etag":null,"topics":[],"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/tyrellsys.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":"2020-03-16T12:33:16.000Z","updated_at":"2024-08-29T08:36:15.000Z","dependencies_parsed_at":"2022-08-24T14:54:50.593Z","dependency_job_id":null,"html_url":"https://github.com/tyrellsys/cakephp-log","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tyrellsys/cakephp-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyrellsys","download_url":"https://codeload.github.com/tyrellsys/cakephp-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28825341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-27T22:40:13.059Z","updated_at":"2026-01-27T22:40:14.120Z","avatar_url":"https://github.com/tyrellsys.png","language":"PHP","readme":"# CakePHPLog plugin for CakePHP\n\n## Installation\n\nYou can install this plugin into your CakePHP application using [composer](https://getcomposer.org).\n\nThe recommended way to install composer packages is:\n\n```\ncomposer require tyrellsys/cakephp-log\n```\n\n## Usage\n\n### Formatter::getMessage($message)\n\nconvert `$message` to string.\n\n```\n[hostname]:/path/to/filename(line no)[pid]: extracted $message\n```\n\n\n```\n...\nuse Tyrellsys\\CakePHPLog\\Formatter;\n...\n    $message = string / array / Cake\\Datasource\\EntityInterface / Object\n\n    Log::write(LOG_WARNING, Formatter::getMessage($message));\n    Log::info(Formatter::getMessage($message));\n    $this-\u003elog(Formatter::getMessage($message), LOG_WARNING);\n\n```\n\n## Override CakePHP4 Cake\\Log\\Log and Cake\\Log\\LogTrait\n\nhttps://book.cakephp.org/4/en/appendices/4-0-migration-guide.html#log\n\u003e Logging related methods like Cake\\Log\\LogTrait::log(), Cake\\Log\\Log::write() etc. now only accept string for $message argument. This change was necessary to align the API with PSR-3 standard.\n\n*You understand and use the feature to ignore the change.*\n\n\nTyrellsys\\CakePHP\\Log\n```\n...\nuse Tyrellsys\\CakePHPLog\\Log;\n...\n        Log::write(LOG_WARNING, $mixed); // mixed message with Tyrellsys/CakePHPLog/Formatter::getMessage()\n...\n```\n\nTyrellsys\\CakePHPLog\\LogTrait\n```\n...\nuse Tyrellsys\\CakePHPLog\\LogTrait;\n...\nclass XXX\n{\n    use Tyrellsys\\CakePHPLog/LogTrait;\n...\n        $this-\u003elog($mixed, LOG_WARNING); // mixed message with Tyrellsys/CakePHPLog/Formatter::getMessage()\n...\n}\n...\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrellsys%2Fcakephp-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyrellsys%2Fcakephp-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrellsys%2Fcakephp-log/lists"}