{"id":23369829,"url":"https://github.com/chaplean/monolog-extra-bundle","last_synced_at":"2025-06-11T17:35:53.433Z","repository":{"id":56951931,"uuid":"189221886","full_name":"chaplean/monolog-extra-bundle","owner":"chaplean","description":"This bundle adds support for extra fields for symfony/monolog-bundle (\u003e= 3.0).","archived":false,"fork":false,"pushed_at":"2019-05-29T13:26:33.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-14T01:17:36.775Z","etag":null,"topics":["logger","monolog","symfony"],"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/chaplean.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-29T12:33:46.000Z","updated_at":"2019-05-29T13:17:26.000Z","dependencies_parsed_at":"2022-08-21T09:20:18.563Z","dependency_job_id":null,"html_url":"https://github.com/chaplean/monolog-extra-bundle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Fmonolog-extra-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Fmonolog-extra-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Fmonolog-extra-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Fmonolog-extra-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaplean","download_url":"https://codeload.github.com/chaplean/monolog-extra-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749966,"owners_count":20989712,"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":["logger","monolog","symfony"],"created_at":"2024-12-21T15:18:11.488Z","updated_at":"2025-04-07T23:45:18.049Z","avatar_url":"https://github.com/chaplean.png","language":"PHP","readme":"# monolog-extra-bundle\n\n[![Build Status](https://travis-ci.org/chaplean/monolog-extra-bundle.svg?branch=master)](https://travis-ci.org/chaplean/monolog-extra-bundle)\n[![Coverage Status](https://coveralls.io/repos/github/chaplean/monolog-extra-bundle/badge.svg?branch=master)](https://coveralls.io/github/chaplean/monolog-extra-bundle?branch=master)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/chaplean/monolog-extra-bundle/issues)\n\nThis bundle adds support for extra fields for symfony/monolog-bundle (\u003e= 3.0).\n\n## Table of content\n\n* [Installation](#installation)\n* [Configuration](#configuration)\n* [Usage](#usage)\n* [Versioning](#versioning)\n* [Contributing](#contributing)\n* [Hacking](#hacking)\n* [License](#license)\n\n## Installation\n\nThis bundle requires at least Symfony 3.0.\n\nYou can use [composer](https://getcomposer.org) to install monolog-extra-bundle:\n```bash\ncomposer require chaplean/monolog-extra-bundle\n```\n\nThen add to your AppKernel.php:\n\n```php\nnew Chaplean\\Bundle\\MonologExtraBundle\\ChapleanMonologExtraBundle(),\n```\n\n## Configuration\n\nOptionally if you want to add global extra fields.\n\nservices.yml:\n```yaml\nservices:\n    your_service_name:\n        class: Chaplean\\Bundle\\MonologExtraBundle\\Processor\\ExtraFieldsProcessor\n        arguments:\n            $globalExtraFields:\n                key : 'value'\n                key2 : 'value2'\n        tags:\n            - { name: monolog.processor, handler: your_handler }\n```\n\n## Usage\n\nIf you want to use logger and send extra field, you can use LoggerExtra which exposes same function than default logger.\nAdd a key 'extra' in the context containing the list of additional fields.\n\n```php\n$loggerExtra-\u003eerror('message', ['extra' =\u003e ['key' =\u003e 'value']])\n```\n\n## Versioning\n\nmonolog-extra-bundle follows [semantic versioning](https://semver.org/). In short the scheme is MAJOR.MINOR.PATCH where\n1. MAJOR is bumped when there is a breaking change,\n2. MINOR is bumped when a new feature is added in a backward-compatible way,\n3. PATCH is bumped when a bug is fixed in a backward-compatible way.\n\nVersions bellow 1.0.0 are considered experimental and breaking changes may occur at any time.\n\n## Contributing\n\nContributions are welcomed! There are many ways to contribute, and we appreciate all of them. Here are some of the major ones:\n\n* [Bug Reports](https://git.chaplean.coop/open-source/bundle/monolog-extra-bundle/issues): While we strive for quality software, bugs can happen and we can't fix issues we're not aware of. So please report even if you're not sure about it or just want to ask a question. If anything the issue might indicate that the documentation can still be improved!\n* [Feature Request](https://git.chaplean.coop/open-source/bundle/monolog-extra-bundle/issues): You have a use case not covered by the current api? Want to suggest a change or add something? We'd be glad to read about it and start a discussion to try to find the best possible solution.\n* [Pull Request](https://git.chaplean.coop/open-source/bundle/monolog-extra-bundle/merge_requests): Want to contribute code or documentation? We'd love that! If you need help to get started, GitHub as [documentation](https://help.github.com/articles/about-pull-requests/) on pull requests. We use the [\"fork and pull model\"](https://help.github.com/articles/about-collaborative-development-models/) were contributors push changes to their personnal fork and then create pull requests to the main repository. Please make your pull requests against the `master` branch.\n\nAs a reminder, all contributors are expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## Hacking\n\nYou might find the following commands usefull when hacking on this project:\n\n```bash\n# Install dependencies\ncomposer install\n\n# Run tests\nbin/phpunit\n```\n\n## License\n\nmonolog-extra-bundle is distributed under the terms of the MIT license.\n\nSee [LICENSE](LICENSE.md) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaplean%2Fmonolog-extra-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaplean%2Fmonolog-extra-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaplean%2Fmonolog-extra-bundle/lists"}