Skip to content
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

日志写入顺序问题 #2922

Open
hongweipeng opened this issue Aug 4, 2023 · 0 comments
Open

日志写入顺序问题 #2922

hongweipeng opened this issue Aug 4, 2023 · 0 comments

Comments

@hongweipeng
Copy link
Member

对于

Log::info('info1');
Log::error('error1');
Log::info('info2');
Log::error('error2');

写入到文件会是:

[2023-08-04T17:05:52+08:00][info] info1
[2023-08-04T17:05:52+08:00][info] info2
[2023-08-04T17:05:52+08:00][error] error1
[2023-08-04T17:05:52+08:00][error] error2

看了代码,TP 会把日志按日志等级划分到不同数组里导致的。开启实时写入则顺序正常。

希望关闭实时写入时的顺序也能正常。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant