{"id":41214935,"url":"https://github.com/phore/phore-log","last_synced_at":"2026-01-22T23:58:40.599Z","repository":{"id":57039200,"uuid":"143828943","full_name":"phore/phore-log","owner":"phore","description":"Logging functions","archived":false,"fork":false,"pushed_at":"2024-12-12T09:38:38.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T20:59:51.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://infracamp.org/project/phore/","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/phore.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-07T06:20:38.000Z","updated_at":"2024-12-12T09:38:42.000Z","dependencies_parsed_at":"2024-05-08T10:46:29.323Z","dependency_job_id":"1cf261c6-bece-4866-9123-5fddf1361312","html_url":"https://github.com/phore/phore-log","commit_stats":{"total_commits":53,"total_committers":2,"mean_commits":26.5,"dds":"0.13207547169811318","last_synced_commit":"9bfde9d18d94c8fa0450bccc98801d24dc2cb83b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/phore/phore-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phore","download_url":"https://codeload.github.com/phore/phore-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28675277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-22T23:58:38.739Z","updated_at":"2026-01-22T23:58:40.588Z","avatar_url":"https://github.com/phore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phore log :: PSR-3 compatible logger\n\n[![Actions Status](https://github.com/phore/phore-log/workflows/tests/badge.svg)](https://github.com/phore/phore-log/actions)\n\n- PSR-3 compliant logger\n- Multiple targets (syslog, file, pipe) with individual configuration\n- Quick configuration with single uri\n- Multi-format support\n\n## Installation\n\n```bash\ncomposer require phore/log\n```\n\n## Logger Usage\n\n**Easy usage**\n```php\nphore_Log(\"Some log message\"); // Debug message\nphore_log(\"Value :val expected\", [\"val\"=\u003e\"some unescaped value\"]); // Auto escaping\nphore_log()-\u003eemergency(\"Emergency Message\");\n```\n\n## Configuration\n\n**Global configuration**\n```php\nPhoreLogger::Register(PhoreLoggerFactory::BuildFromUri(\"syslog+udp://metrics.host.tld:4200?tag=server1\"));\n```\n\n**Multi instance**\n```\n$logger = PhoreLoggerFactory::BuildFromUri();\n```\n\n### Logging\n```\nphore_log(\"something to log :message\", [\"message\"=\u003e\"Hello\"]);\n\nphore_log()-\u003esetLogLevel(LogLevel::DEBUG);\nphore_log()-\u003eemergency(\"emergency\"); \n\n```\n\n### LogLevel\n\n| LogLevel              | Code |\n|-----------------------|------|\n| LogLevel::EMERGENCY   | 0    |\n| LogLevel::ALERT       | 1    |\n| LogLevel::CRITICAL    | 2    |\n| LogLevel::ERROR       | 3    |\n| LogLevel::WARNING     | 4    |\n| LogLevel::NOTICE      | 5    |\n| LogLevel::INFO        | 6    |\n| LogLevel::DEBUG       | 7 (default)   |\n\n\n### Logging configuration\n\nYou can specify one or more logger with different log levels.\n\n```\nsyslog+udp://\u003chostname\u003e:\u003cport\u003e/\u003ctag\u003e?severity=4\u0026\nsyslogng+udp://\ndef://stdout?severity=4\ndef://stderr?severity=4\nfile:///var/log/xy.log?severity=4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphore%2Fphore-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphore%2Fphore-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphore%2Fphore-log/lists"}