drinks-it /sf-consumer-logger-bundle
为消费者格式化日志记录启动/运行/停止事件
0.0.2
2023-11-07 15:37 UTC
Requires
- symfony/config: ^5.4 || ^6.1 || ^6.2 || ^6.3 || ^6.4
- symfony/dependency-injection: ^5.4 || ^6.1 || ^6.2 || ^6.3 || ^6.4
- symfony/messenger: ^5.4 || ^6.1 || ^6.2 || ^6.3 || ^6.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.19 || ^3.0
- symfony/http-kernel: ^5.4 || ^6.1 || ^6.2 || ^6.3 || ^6.4
- symfony/phpunit-bridge: ^5.0 || ^6.0
README
1. 安装
compsoer require drinks-it/sf-consumer-logger-bundle
配置
# config/packages/sf_consumer_logger.yaml sf_consumer_logger: on_start: info on_start_message: 'Consumer started' on_running: null # off logs when consumer running on_running_message: 'Consumer running' on_stop: info on_stop_message: 'Consumer stopped'