royalcms / tail
Royalcms tail 包。
v5.0.0
2019-09-04 05:59 UTC
Requires
- php: >=5.5.9
This package is auto-updated.
Last update: 2024-09-24 14:06:10 UTC
README
本包提供了一个 Artisan 命令来查看应用程序日志。它支持在本地机器上查看每日日志和单个日志。
用法
要查看日志,可以使用以下命令
php artisan tail
您可以使用 lines 选项显示日志中的最后几行来开始输出。
php artisan tail --lines=50
要过滤输出中的堆栈跟踪,可以使用 hide-stack-traces 选项。
php artisan tail --hide-stack-traces
还可以在每个日志项之后完全清除输出缓冲区。如果您在调试时只对最后一条日志条目感兴趣,这可能会很有用。
php artisan tail --clear