crazywhalecc
d79edcef53
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
1.1.7
2026-06-17 14:46:27 +08:00
crazywhalecc
ac5fa59428
Add long level name
1.1.6
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
1.1.4
2025-11-08 23:38:01 +08:00
crazywhalecc
2551b3e1db
phpstan
1.1.3
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
1.1.2
2025-04-24 10:02:28 +08:00
sunxyw
1b7e343493
Merge pull request #7 from zhamao-robot/fix-no-terminal-size-without-io
...
修復无交互环境下无法获取终端尺寸
1.1.1
2023-03-09 23:41:10 +08:00
sunxyw
97ee152121
update version
2023-03-09 23:40:30 +08:00
sunxyw
11156c65a2
fix no terminal size without io
2023-03-09 22:41:30 +08:00
crazywhalecc
5158a0ee2a
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# src/ZM/Logger/ConsoleLogger.php
1.1.0
2022-11-05 22:08:03 +08:00
crazywhalecc
92d281262c
add stream output support and "decorated" setting
2022-11-05 22:06:35 +08:00
Jerry Ma
2f584c0f0c
Update ConsoleLogger.php
1.0.2
2022-09-22 22:37:41 +08:00
crazywhalecc
cc43c4729f
update to 1.0.1 (add windows support)
1.0.1
2022-08-22 16:04:45 +08:00
crazywhalecc
af263a9d3b
Fix ext-json warning
2022-05-15 00:50:29 +08:00
sunxyw
37c4c2a87d
add console logger tests ( #3 )
2022-05-15 00:39:48 +08:00
sunxyw
2afe08d396
Merge pull request #1 from zhamao-robot/refactor-logger
...
重构 ConsoleLogger
2022-05-14 01:00:27 +08:00
sunxyw
9bfa140de1
add log callback feature
2022-05-13 19:44:06 +08:00
Jerry Ma
7a386bc1ed
Merge pull request #2 from zhamao-robot/rewrite-table-printer
...
重构 TablePrinter
2022-05-13 18:46:50 +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
crazywhalecc
d53c669ec2
enhancement for some code
2022-05-13 18:12:25 +08:00
sunxyw
bfa816f734
remove legacy process placeholder
2022-05-13 18:06:03 +08:00
crazywhalecc
bcc6a9b4e4
add terminal size caching
2022-05-13 17:18:26 +08:00
crazywhalecc
c14e6b75b8
fix setBorderWidth bug
2022-05-13 03:16:54 +08:00
crazywhalecc
ef6b2d9f90
write PHPDoc
2022-05-13 03:09:38 +08:00
crazywhalecc
94ed3b9a49
rewrite TablePrinter
2022-05-13 02:58:20 +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
Jerry Ma
ab34f6f1f3
Initial commit
2022-05-12 19:23:27 +08:00