Commit Graph

16 Commits

Author SHA1 Message Date
crazywhalecc
8a72831c5c fix: add recursion guard to prevent 100% CPU when STDOUT/STDERR is broken
When the terminal (IDE) is closed without stopping the framework first,
the PTY is destroyed and STDOUT/STDERR become broken file descriptors.
Any subsequent log call via echo/fwrite fails with E_WARNING, the error
handler catches it and calls the logger again, creating a recursive loop
that consumes 100% CPU.

Changes:
- Add static $in_log recursion guard flag to ConsoleLogger
- Wrap log output (echo/fwrite/fflush) with the guard and @ suppression
- Bump version from 1.1.6 to 1.1.7
2026-06-17 14:30:50 +08:00
crazywhalecc
ac5fa59428 Add long level name 2026-05-06 14:47:06 +08:00
crazywhalecc
26dc5fa8c3 Enhance output handling in ConsoleLogger to use STDERR for specific log levels 2025-12-16 10:56:19 +08:00
crazywhalecc
e75fa01ca5 Enhance output handling in ConsoleLogger to use STDERR for specific log levels 2025-12-16 10:56:09 +08:00
crazywhalecc
b28c0c26d5 Add setLevel function 2025-11-08 23:38:01 +08:00
crazywhalecc
2551b3e1db phpstan 2025-08-02 21:44:27 +08:00
crazywhalecc
81ab0b98f6 Update to 1.1.3 2025-08-02 21:43:12 +08:00
crazywhalecc
1d7427abd8 Add short level format 2025-04-24 10:02:28 +08:00
sunxyw
97ee152121 update version 2023-03-09 23:40:30 +08:00
crazywhalecc
92d281262c add stream output support and "decorated" setting 2022-11-05 22:06:35 +08:00
sunxyw
9bfa140de1 add log callback feature 2022-05-13 19:44:06 +08:00
sunxyw
3e10a5b758 optimize type hints 2022-05-13 18:38:23 +08:00
sunxyw
5423de6df5 add static context support 2022-05-13 18:35:05 +08:00
sunxyw
bfa816f734 remove legacy process placeholder 2022-05-13 18:06:03 +08:00
sunxyw
6082fcf8d2 refactor console logger 2022-05-13 02:36:05 +08:00
crazywhalecc
06b76e4c96 initial commit 2022-05-12 20:27:01 +08:00