mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 08:35:53 +03:00
[GH-ISSUE #1323] ZendMonitor TypeError #548
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#548
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @happydude on GitHub (Apr 26, 2019).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1323
Getting a TypeError in 2.0.0-beta1,
./vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php:68
zend_monitor_custom_event() expects parameter 1 to be string, integer given
Documentation at http://files.zend.com/help/Zend-Server/content/zendserverapi/zend_monitor-php_api.htm#function-zend_monitor_custom_event
Based on the zend server documentation
github.com/Seldaek/monolog@ebb804e432/src/Monolog/Handler/ZendMonitorHandler.php (L68)should be something like
In addition the levelMap is not compatible with zend server monitor, they only support three log levels:
outputs
@Seldaek commented on GitHub (Jul 3, 2019):
If you have time to send a PR, the handler would ideally adjust its behavior based on the version of ZendServer present, I am not familiar enough with it to say how to detect that.. Please target the 1.x branch for a fix.
@happydude commented on GitHub (Jul 12, 2019):
I did not find a way to detect zend server version, but the newer style should be compatible with zend server 6 (php 5.3) and newer.
I did not commit it, but the tests passed with declare(strict_types=1).