{"id":33964265,"url":"https://github.com/osd84/lightlogger","last_synced_at":"2025-12-12T22:59:53.340Z","repository":{"id":250278670,"uuid":"491844289","full_name":"osd84/lightlogger","owner":"osd84","description":"A stupid and brutal PHP logger system","archived":false,"fork":false,"pushed_at":"2025-05-06T20:10:56.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T09:30:26.401Z","etag":null,"topics":["brutalism","php","php-libraries"],"latest_commit_sha":null,"homepage":"","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/osd84.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-13T09:53:11.000Z","updated_at":"2025-05-06T20:10:27.000Z","dependencies_parsed_at":"2024-07-26T09:29:12.917Z","dependency_job_id":null,"html_url":"https://github.com/osd84/lightlogger","commit_stats":null,"previous_names":["petitcitron/lightlogger","osd84/lightlogger"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/osd84/lightlogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osd84%2Flightlogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osd84%2Flightlogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osd84%2Flightlogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osd84%2Flightlogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osd84","download_url":"https://codeload.github.com/osd84/lightlogger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osd84%2Flightlogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27694424,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["brutalism","php","php-libraries"],"created_at":"2025-12-12T22:59:52.760Z","updated_at":"2025-12-12T22:59:53.331Z","avatar_url":"https://github.com/osd84.png","language":"PHP","readme":"\n# LightLogger\n\nA stupid and brutal PHP **logger system**\nOrignally found in gist \u003ca href=\"https://gist.github.com/kevinchappell/09130ee9036f5954ac8f\"\u003ekevinchappell\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n\u003cbr\u003e\n\n## Requirements\n\n- PHP 7.4+\n\n![screen.png](screen.png)\n\n## Installation\n\n```\ncomposer require osd84/lightlogger\n```\n\n## Usage\n\n```php\n\u003c?php\nuse osd84\\LightLogger\\Logger;\nuse osd84\\LightLogger\\NoLogger;\n\ndefine('ROOT', dirname(__FILE__, 2));\n\nrequire dirname(__DIR__) . '/vendor/autoload.php';\n\n// if want log\n$log = new Logger(ROOT . '/logs/', 'myapp.log');\n$log-\u003einfo('an Info'); // May-13-2022 10:34:57 | Info: an Info\n$log-\u003eerror('an Err'); // May-13-2022 10:34:57 | Error: an Err\n$log-\u003ebeer('an Beer'); // May-13-2022 10:34:57 | Beer: an Beer\n\n// if want silent Log\n$log = new NoLogger();\n$log-\u003einfo('an Info'); // null\n$log-\u003eerror('an Err'); // null\n$log-\u003ebeer('an Beer'); // null\n\n// Why, because some time you need silent log simply ?\n$debug = false;\nif($debug) {\n    $log = new Logger(ROOT . '/logs/')\n} else {\n    $log = new NoLogger();\n}\n$log-\u003einfo('Log is Disabled') // null\n\n$debug = true;\nif($debug) {\n    $log = new Logger(ROOT . '/logs/')\n} else {\n    $log = new NoLogger();\n}\n$log-\u003einfo('Log is Enabled') // May-13-2022 10:34:57 | Info: Log is Enabled\n```\n\n## Tests\n\nSimple Tests by running \u003cbr\u003e\n\n```sh\nphp tests/run.php\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosd84%2Flightlogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosd84%2Flightlogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosd84%2Flightlogger/lists"}