{"id":18309806,"url":"https://github.com/phpdevcommunity/psr3-logger","last_synced_at":"2025-10-15T07:21:11.475Z","repository":{"id":257815003,"uuid":"869403865","full_name":"phpdevcommunity/psr3-logger","owner":"phpdevcommunity","description":"A straightforward logging library for PHP that implements PSR-3, making it easy to integrate logging into your project.","archived":false,"fork":false,"pushed_at":"2024-10-08T09:12:39.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T04:07:43.015Z","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/phpdevcommunity.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":"2024-10-08T08:35:54.000Z","updated_at":"2025-01-01T13:25:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4046d7e-f3e7-4771-b9b8-538917cb75b2","html_url":"https://github.com/phpdevcommunity/psr3-logger","commit_stats":null,"previous_names":["phpdevcommunity/psr3-logger"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpdevcommunity%2Fpsr3-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpdevcommunity%2Fpsr3-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpdevcommunity%2Fpsr3-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpdevcommunity%2Fpsr3-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpdevcommunity","download_url":"https://codeload.github.com/phpdevcommunity/psr3-logger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248605697,"owners_count":21132217,"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":[],"created_at":"2024-11-05T16:12:28.065Z","updated_at":"2025-10-15T07:21:06.436Z","avatar_url":"https://github.com/phpdevcommunity.png","language":"PHP","readme":"# PHP Logger PSR-3\n\nA straightforward logging library for PHP that implements PSR-3, making it easy to integrate logging into your project.\n\n## Installation\n\nInstall via [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require phpdevcommunity/psr3-logger\n```\n\n## Requirements\n\n- PHP 7.4 or higher\n\n## Usage\n\nHere's how to set up and use the logger:\n\n```php\n\u003c?php\n\nuse PhpDevCommunity\\Log\\Handler\\FileHandler;\nuse PhpDevCommunity\\Log\\Logger;\nuse Psr\\Log\\LogLevel;\n\n// Define the log file path\n$logFileName = dirname(__DIR__) . '/var/log/' . date('Y-m-d') . '.log';\n\n// Create a file handler for logging to a file\n$handler = new FileHandler($logFileName);\n\n// Initialize the logger with the file handler\n$logger = new Logger($handler);\n\n// Log an emergency message\n$logger-\u003elog(LogLevel::EMERGENCY, 'An error has occurred');\n```\n\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests to help improve the library.\n\n## License\n\nThis library is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpdevcommunity%2Fpsr3-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpdevcommunity%2Fpsr3-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpdevcommunity%2Fpsr3-logger/lists"}