[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8115":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":19,"lastSyncTime":34,"discoverSource":35},8115,"monolog","Seldaek\u002Fmonolog","Seldaek","Sends your logs to files, sockets, inboxes, databases and various web services","https:\u002F\u002Fseldaek.github.io\u002Fmonolog\u002F",null,"PHP",21389,1907,306,22,0,3,9,2,44.84,"MIT License",false,"main",true,[26,27,28,29,30],"hacktoberfest","logger","logging","php","psr-3","2026-06-12 02:01:49","\u003Cp align=\"center\">\u003Cimg src=\"logo.jpg\" alt=\"Monolog\" width=\"400\">\u003C\u002Fp>\n\n# Monolog - Logging for PHP [![Continuous Integration](https:\u002F\u002Fgithub.com\u002FSeldaek\u002Fmonolog\u002Fworkflows\u002FContinuous%20Integration\u002Fbadge.svg?branch=main)](https:\u002F\u002Fgithub.com\u002FSeldaek\u002Fmonolog\u002Factions)\n\n[![Total Downloads](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdt\u002Fmonolog\u002Fmonolog.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fmonolog\u002Fmonolog)\n[![Latest Stable Version](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fv\u002Fmonolog\u002Fmonolog.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fmonolog\u002Fmonolog)\n\n>**Note** This is the **documentation for Monolog 3.x**, if you are using older releases\n>see the documentation for [Monolog 2.x](https:\u002F\u002Fgithub.com\u002FSeldaek\u002Fmonolog\u002Fblob\u002F2.x\u002FREADME.md) or [Monolog 1.x](https:\u002F\u002Fgithub.com\u002FSeldaek\u002Fmonolog\u002Fblob\u002F1.x\u002FREADME.md)\n\nMonolog sends your logs to files, sockets, inboxes, databases and various\nweb services. See the complete list of handlers below. Special handlers\nallow you to build advanced logging strategies.\n\nThis library implements the [PSR-3](https:\u002F\u002Fgithub.com\u002Fphp-fig\u002Ffig-standards\u002Fblob\u002Fmaster\u002Faccepted\u002FPSR-3-logger-interface.md)\ninterface that you can type-hint against in your own libraries to keep\na maximum of interoperability. You can also use it in your applications to\nmake sure you can always use another compatible logger at a later time.\nAs of 1.11.0 Monolog public APIs will also accept PSR-3 log levels.\nInternally Monolog still uses its own level scheme since it predates PSR-3.\n\n\u003Cdiv align=\"center\">\n  \u003Chr>\n  \u003Csup>\u003Cb>Sponsored by:\u003C\u002Fb>\u003C\u002Fsup>\n  \u003Cbr>\n  \u003Ca href=\"https:\u002F\u002Fbetterstack.com\">\n    \u003Cdiv>\n      \u003Cimg src=\"https:\u002F\u002Fgithub.com\u002FSeldaek\u002Fmonolog\u002Fassets\u002F183678\u002F7de58ce0-2fa2-45c0-b3e8-e60cebb3c4cf\" width=\"200\" alt=\"Better Stack\">\n    \u003C\u002Fdiv>\n    \u003Cdiv>\n      Better Stack lets you centralize, search, and visualize your logs.\n    \u003C\u002Fdiv>\n  \u003C\u002Fa>\n  \u003Cbr>\n  \u003Chr>\n\u003C\u002Fdiv>\n\n## Installation\n\nInstall the latest version with\n\n```bash\ncomposer require monolog\u002Fmonolog\n```\n\n## Basic Usage\n\n```php\n\u003C?php\n\nuse Monolog\\Level;\nuse Monolog\\Logger;\nuse Monolog\\Handler\\StreamHandler;\n\n\u002F\u002F create a log channel\n$log = new Logger('name');\n$log->pushHandler(new StreamHandler('path\u002Fto\u002Fyour.log', Level::Warning));\n\n\u002F\u002F add records to the log\n$log->warning('Foo');\n$log->error('Bar');\n```\n\n## Documentation\n\n- [Usage Instructions](doc\u002F01-usage.md)\n- [Handlers, Formatters and Processors](doc\u002F02-handlers-formatters-processors.md)\n- [Utility Classes](doc\u002F03-utilities.md)\n- [Extending Monolog](doc\u002F04-extending.md)\n- [Log Record Structure](doc\u002Fmessage-structure.md)\n\n## Support Monolog Financially\n\nGet supported Monolog and help fund the project with the [Tidelift Subscription](https:\u002F\u002Ftidelift.com\u002Fsubscription\u002Fpkg\u002Fpackagist-monolog-monolog?utm_source=packagist-monolog-monolog&utm_medium=referral&utm_campaign=enterprise) or via [GitHub sponsorship](https:\u002F\u002Fgithub.com\u002Fsponsors\u002FSeldaek).\n\nTidelift delivers commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.\n\n## Third Party Packages\n\nThird party handlers, formatters and processors are\n[listed in the wiki](https:\u002F\u002Fgithub.com\u002FSeldaek\u002Fmonolog\u002Fwiki\u002FThird-Party-Packages). You\ncan also add your own there if you publish one.\n\n## About\n\n### Requirements\n\n- Monolog `^3.0` works with PHP 8.1 or above.\n- Monolog `^2.5` works with PHP 7.2 or above.\n- Monolog `^1.25` works with PHP 5.3 up to 8.1, but is not very maintained anymore and will not receive PHP support fixes anymore.\n\n### Support\n\nMonolog 1.x support is somewhat limited at this point and only important fixes will be done. You should migrate to Monolog 2 or 3 where possible to benefit from all the latest features and fixes.\n\n### Submitting bugs and feature requests\n\nBugs and feature request are tracked on [GitHub](https:\u002F\u002Fgithub.com\u002FSeldaek\u002Fmonolog\u002Fissues)\n\n### Framework Integrations\n\n- Frameworks and libraries using [PSR-3](https:\u002F\u002Fgithub.com\u002Fphp-fig\u002Ffig-standards\u002Fblob\u002Fmaster\u002Faccepted\u002FPSR-3-logger-interface.md)\n  can be used very easily with Monolog since it implements the interface.\n- [Symfony](http:\u002F\u002Fsymfony.com) comes out of the box with Monolog.\n- [Laravel](http:\u002F\u002Flaravel.com\u002F) comes out of the box with Monolog.\n- [Lumen](http:\u002F\u002Flumen.laravel.com\u002F) comes out of the box with Monolog.\n- [PPI](https:\u002F\u002Fgithub.com\u002Fppi\u002Fframework) comes out of the box with Monolog.\n- [CakePHP](http:\u002F\u002Fcakephp.org\u002F) is usable with Monolog via the [cakephp-monolog](https:\u002F\u002Fgithub.com\u002Fjadb\u002Fcakephp-monolog) plugin.\n- [XOOPS 2.6](http:\u002F\u002Fxoops.org\u002F) comes out of the box with Monolog.\n- [Aura.Web_Project](https:\u002F\u002Fgithub.com\u002Fauraphp\u002FAura.Web_Project) comes out of the box with Monolog.\n- [Nette Framework](http:\u002F\u002Fnette.org\u002Fen\u002F) is usable with Monolog via the [contributte\u002Fmonolog](https:\u002F\u002Fgithub.com\u002Fcontributte\u002Fmonolog) or [orisai\u002Fnette-monolog](https:\u002F\u002Fgithub.com\u002Forisai\u002Fnette-monolog) extensions.\n- [Proton Micro Framework](https:\u002F\u002Fgithub.com\u002Falexbilbie\u002FProton) comes out of the box with Monolog.\n- [FuelPHP](http:\u002F\u002Ffuelphp.com\u002F) comes out of the box with Monolog.\n- [Equip Framework](https:\u002F\u002Fgithub.com\u002Fequip\u002Fframework) comes out of the box with Monolog.\n- [Yii 2](http:\u002F\u002Fwww.yiiframework.com\u002F) is usable with Monolog via the [yii2-monolog](https:\u002F\u002Fgithub.com\u002Fmerorafael\u002Fyii2-monolog) or [yii2-psr-log-target](https:\u002F\u002Fgithub.com\u002Fsamdark\u002Fyii2-psr-log-target) plugins.\n- [Hawkbit Micro Framework](https:\u002F\u002Fgithub.com\u002FHawkBitPhp\u002Fhawkbit) comes out of the box with Monolog.\n- [SilverStripe 4](https:\u002F\u002Fwww.silverstripe.org\u002F) comes out of the box with Monolog.\n- [Drupal](https:\u002F\u002Fwww.drupal.org\u002F) is usable with Monolog via the [monolog](https:\u002F\u002Fwww.drupal.org\u002Fproject\u002Fmonolog) module.\n- [Aimeos ecommerce framework](https:\u002F\u002Faimeos.org\u002F) is usable with Monolog via the [ai-monolog](https:\u002F\u002Fgithub.com\u002Faimeos\u002Fai-monolog) extension.\n- [Magento](https:\u002F\u002Fmagento.com\u002F) comes out of the box with Monolog.\n- [Spiral Framework](https:\u002F\u002Fspiral.dev) comes out of the box with Monolog bridge.\n- [WebFramework](https:\u002F\u002Fweb-framework.com\u002F) comes out of the box with Monolog.\n\n### Author\n\nJordi Boggiano - \u003Cj.boggiano@seld.be> - \u003Chttp:\u002F\u002Ftwitter.com\u002Fseldaek>\u003Cbr \u002F>\nSee also the list of [contributors](https:\u002F\u002Fgithub.com\u002FSeldaek\u002Fmonolog\u002Fcontributors) who participated in this project.\n\n### License\n\nMonolog is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n### Acknowledgements\n\nThis library is heavily inspired by Python's [Logbook](https:\u002F\u002Flogbook.readthedocs.io\u002Fen\u002Fstable\u002F)\nlibrary, although most concepts have been adjusted to fit to the PHP world.\n","Monolog 是一个用于 PHP 的日志记录库，支持将日志发送到文件、套接字、邮箱、数据库和各种 Web 服务。它遵循 PSR-3 接口标准，确保了与其他兼容库的互操作性，并且提供了丰富的处理器来构建高级的日志策略。Monolog 适用于需要灵活日志处理方案的应用场景，无论是简单的文件记录还是复杂的多渠道分发，都能轻松应对。通过 Composer 可以方便地将其集成到项目中，从而提高应用的可维护性和故障排查效率。","2026-06-11 03:16:09","top_language"]