{"id":19124666,"url":"https://github.com/duncan3dc/climate-logger","last_synced_at":"2025-09-10T04:10:27.320Z","repository":{"id":28058871,"uuid":"31555410","full_name":"duncan3dc/climate-logger","owner":"duncan3dc","description":"Use your best friend for the terminal with your favourite PSR-3 compatible projects","archived":false,"fork":false,"pushed_at":"2019-04-28T13:13:37.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T23:27:48.719Z","etag":null,"topics":["climate","php","php-league","psr-3"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duncan3dc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-02T18:21:06.000Z","updated_at":"2019-04-28T13:13:39.000Z","dependencies_parsed_at":"2022-08-02T13:06:03.477Z","dependency_job_id":null,"html_url":"https://github.com/duncan3dc/climate-logger","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fclimate-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fclimate-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fclimate-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fclimate-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duncan3dc","download_url":"https://codeload.github.com/duncan3dc/climate-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240183773,"owners_count":19761440,"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":["climate","php","php-league","psr-3"],"created_at":"2024-11-09T05:29:49.775Z","updated_at":"2025-02-22T13:58:29.786Z","avatar_url":"https://github.com/duncan3dc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# climate-logger\nUse your best friend for the terminal with your favourite PSR-3 compatible projects\n\n[![Build Status](https://img.shields.io/travis/duncan3dc/climate-logger.svg)](https://travis-ci.org/duncan3dc/climate-logger)\n[![Latest Version](https://img.shields.io/packagist/v/duncan3dc/climate-logger.svg)](https://packagist.org/packages/duncan3dc/climate-logger)\n\n## CLImate\nRead all about CLImate [here](http://climate.thephpleague.com/)\n\n## PSR-3\nRead all about PSR-3 [here](http://www.php-fig.org/psr/psr-3/)\n\n## Examples\nCombine the two for simple terminal logging:\n\n```php\n$somethingThatLogs-\u003esetLogger(new \\duncan3dc\\CLImate\\Logger);\n```\n\nBy default a logger instance will hide DEBUG and log everything else, you can set a specific level like so:\n\n```php\n$logger = new \\duncan3dc\\CLImate\\Logger(\\Psr\\Log\\LogLevel::DEBUG);\n$somethingThatLogs-\u003esetLogger($logger);\n```\n\n## Advanced\nYou can pass your own customised instance of CLImate to the logger:\n\n```php\n$climate = new \\League\\CLImate\\CLImate;\n$climate-\u003estyle-\u003eaddCommand(\"debug\", [\"yellow\", \"background_black\"]);\n$logger = new \\duncan3dc\\CLImate\\Logger(LogLevel::INFO, $climate);\n\n# Now my debug information will be yellow and black\n$somethingThatLogs-\u003esetLogger($logger);\n```\n\n## Changelog\n---------\nA [Changelog](CHANGELOG.md) has been available since the beginning of time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduncan3dc%2Fclimate-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduncan3dc%2Fclimate-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduncan3dc%2Fclimate-logger/lists"}