{"id":25014281,"url":"https://github.com/gregoryv/php-logger","last_synced_at":"2025-03-30T05:13:12.176Z","repository":{"id":31770694,"uuid":"35336993","full_name":"gregoryv/php-logger","owner":"gregoryv","description":"Basic logging for php","archived":false,"fork":false,"pushed_at":"2022-04-13T05:32:07.000Z","size":197,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T02:26:52.868Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregoryv.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-05-09T16:58:15.000Z","updated_at":"2022-04-12T20:28:31.000Z","dependencies_parsed_at":"2022-09-10T09:40:52.466Z","dependency_job_id":null,"html_url":"https://github.com/gregoryv/php-logger","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fphp-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fphp-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fphp-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fphp-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregoryv","download_url":"https://codeload.github.com/gregoryv/php-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277360,"owners_count":20751549,"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":"2025-02-05T07:18:57.490Z","updated_at":"2025-03-30T05:13:12.149Z","avatar_url":"https://github.com/gregoryv.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/gregoryv/php-logger.svg?branch=master)](https://travis-ci.org/gregoryv/php-logger)\n[![Code Climate](https://codeclimate.com/github/gregoryv/php-logger/badges/gpa.svg)](https://codeclimate.com/github/gregoryv/php-logger)\n[![Test Coverage](https://codeclimate.com/github/gregoryv/php-logger/badges/coverage.svg)](https://codeclimate.com/github/gregoryv/php-logger/coverage)\n\n[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=gregoryv\u0026url=https%3A%2F%2Fgithub.com%2Fgregoryv%2Fphp-logger\u0026title=php-logger\u0026language=php\u0026tags=github\u0026category=software)\n\n* [API reference](http://gregoryv.github.io/php-logger/api/namespace-gregoryv.logger.html)\n* [Example](ExampleUsage.php)\n\nREADME\n======\n\nLogger module for basic intuitive logging in php. Severity levels are based on\nthose for *syslog* found in [RFC5424](http://tools.ietf.org/html/rfc5424).\nThis module is a starting point from which you can evolve your logging needs\nas your system grows. The simplest and default way of using it is\n\n    use gregoryv\\logger\\Logger;\n\n    $log = new Logger();\n    $log-\u003einfo('something');\n\n    $x = 'something';\n    $log-\u003edebugf('Variable $x=%s', $x);\n\n    $log-\u003eturn('off debug'); // for this logger only\n    $log-\u003edebug('this will not be written');\n\n    $log-\u003eturn('off all warn'); // for this and all subsequently created loggers\n\n\nThe logger has methods for each severity level defined by [RFC5424 6.2.1](http://tools.ietf.org/html/rfc5424#section-6.2.1).\nThat means you do not care much about where the messages end up initially, which\nsurprisingly, is in the syslog.\n\n![Design](design.jpg)\n\nUsage\n-----\n\nAdd to your composer.json\n\n    {\n      \"require\": {\n        \"gregoryv/php-logger\": \"*\"\n      }\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregoryv%2Fphp-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregoryv%2Fphp-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregoryv%2Fphp-logger/lists"}