| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR refactors the logger configuration from a flat group-based structure to a more organized channel-based approach inspired by Laravel's logging system. The changes introduce a default channel concept and provide multiple predefined channel configurations for common logging scenarios.
Key Changes:
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/logger/src/LoggerFactory.php | Updated factory methods to use channel-based lookups and improved type hints |
| src/logger/publish/logger.php | Restructured configuration to channel-based format with multiple predefined channels |
| src/logger/tests/LoggerFactoryTest.php | Updated test configuration structure and parameter names to reflect channel-based approach |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Sorry, something went wrong.
|
兼容老版 logger 结构 default 为 string 使用新版, |
Sorry, something went wrong.
- Restructured logger configuration to use channel-based approach similar to Laravel - Changed configuration structure from group-based to channel-based for better clarity - Added multiple predefined channels: stack, single, daily, stderr, syslog, and null - Updated LoggerFactory to use 'channel' parameter instead of 'group' parameter - Added support for default channel configuration via LOG_CHANNEL environment variable - Added support for stack channel configuration via LOG_STACK environment variable - Improved type hints in LoggerFactory methods - Updated tests to reflect the new channel-based approach - Maintained backward compatibility with existing configurations
…slog handler configuration
调整好了 |
Sorry, something went wrong.
… in LoggerFactory
| Back | FazBrowse Home | New Git URL |
Summary
This PR refactors the logger configuration structure to use a channel-based approach similar to Laravel's logging system, providing better clarity and flexibility.
Changes
Test Plan
Backward Compatibility
The changes maintain backward compatibility with existing configurations while providing a more intuitive structure for new implementations.