{"id":18974994,"url":"https://github.com/bufferapp/php-bufflog","last_synced_at":"2025-10-18T09:59:16.559Z","repository":{"id":54057442,"uuid":"222389613","full_name":"bufferapp/php-bufflog","owner":"bufferapp","description":"php logger for all PHP Buffer services","archived":false,"fork":false,"pushed_at":"2023-01-26T13:03:21.000Z","size":61,"stargazers_count":1,"open_issues_count":10,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T05:21:08.782Z","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/bufferapp.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}},"created_at":"2019-11-18T07:37:44.000Z","updated_at":"2023-07-06T23:25:29.000Z","dependencies_parsed_at":"2023-02-14T17:20:19.003Z","dependency_job_id":null,"html_url":"https://github.com/bufferapp/php-bufflog","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fphp-bufflog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fphp-bufflog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fphp-bufflog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fphp-bufflog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bufferapp","download_url":"https://codeload.github.com/bufferapp/php-bufflog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249740936,"owners_count":21318717,"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-08T15:16:54.543Z","updated_at":"2025-10-18T09:59:11.532Z","avatar_url":"https://github.com/bufferapp.png","language":"PHP","readme":"# PHP BuffLog\n\nPHP logger for all Buffer services\n\n\n## Requirements\n\nPHP 8.1 and later.\n\n## Setup BuffLog in your PHP project via Composer\n\nYou can install the bindings via [Composer](http://getcomposer.org/). Run the following command:\n\n```bash\ncomposer require bufferapp/php-bufflog\n```\n\n## Usage\nAs simple as...\n\n```php\nuse Buffer\\BuffLog\\BuffLog;\n\nBuffLog::debug(\"I am a debug\");\nBuffLog::info(\"I am an info\");\nBuffLog::warning(\"I am a warning\");\nBuffLog::error(\"I am an error\");\nBuffLog::critical(\"I am a warning\");\n```\n\nIf you wish add more context in your logs, \n```php\nBuffLog::debug(\"some context\", [\"my key\" =\u003e \" my value\"]);\nBuffLog::info(\"I am a info with context\", [\"my key\" =\u003e \" my value\"]);\nBuffLog::warning(\"I am a warning\", [\"duration\" =\u003e \"40ms\"]);\n\nBuffLog::critical(\"I'm critical log, here some extra fancy informations\", [\n                        \"duration\" =\u003e \"40ms\",\n                        \"services_related\" =\u003e [\n                            \"Twitter\",\n                            \"Facebook\",\n                            \"Instagram\"\n                        ]\n                    ]\n                );\n```\n\n## Log verbosity levels\n\nIf you wish to see more logs, simply set the `LOG_LEVEL` to the desired level. Here the list with their level and their use case:\n\n| Levels  | Use case  | Examples  |\n|:-:|---|---|\n| DEBUG  | Information used for interactive investigation, with no long-term value. Activate it with `LOG_LEVEL=DEBUG`| Printing function names, steps inside a function. |\n| INFO | Interesting events. Track the general flow of the application.  Activate it with `LOG_LEVEL=INFO`| User logs in, SQL logs, worker process/delete a message... |\n| NOTICE | Uncommon events. **This is the default verbosity level**. |  Missing environment variables, page redirection, pod starting/restarting/terminating, retrying to query an API... |\n| WARNING | Exceptional occurrences that are not errors. Undesirable things that are not necessarily wrong. | Use of deprecated APIs,  poor use of an API, unauthorized access, pod restart because of memory limit ... |\n| ERROR | Runtime errors. Highlight when the current flow of execution is stopped due to a failure. | Exceptions messages, incorect credentials or permissions...  |\n| CRITICAL  | Critical conditions. Describe an unrecoverable application, system crash, or a catastrophic failure that requires immediate attention.  | Application component unavailable, unexpected exception. entire website down, database unavailable ...|\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufferapp%2Fphp-bufflog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbufferapp%2Fphp-bufflog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufferapp%2Fphp-bufflog/lists"}