-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LogLevel 枚举有错误 #24
Comments
下方的 Workerman 日志由 Workerman 自身输出,见源码: 粗略来看,似乎无法从外部干预,是否有办法截获 / 修改 Workerman 的输出流? |
在这个位置使用了运算符比较级别大小,但是此处的 Workerman 的输出先留在那,后面我会去掉并自定义格式化(因为 Swoole 那边啥输出也没有)。 |
Workerman 按 Ctrl+C 的那个提示确实不好弄,不过 Workerman 应该都能重写。 |
由于在关闭后没有更多信息,此Issue已被自动锁定。如有需要请提出一个新Issue。 |
受影响版本
0.3.0
描述
在
Psr\Log\LogLevel
中,LogLevel::INFO
获取到的是字符串info
,而在 libob 内,应该让ConsoleLogger::$logLevel
为数字,目前因为这个问题无法正确使用 logger。复现步骤
使用 demo.php,无法显示 info log。
解决方案
修改 ConsoleLogger。(具体我也不知道 Psr 的要求是什么,我也去看看。
附加信息
The text was updated successfully, but these errors were encountered: