In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to look at the log of laravel". In the course of the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
In laravel, the log file is located in the "storage/logs" folder, and the default file name is "laravel.log"; if there is a permission problem with the log file, laravel will pause and you can use the "php artisan tail" command to view the real-time program running log.
This article operating environment: Windows10 system, Laravel6 version, Dell G3 computer.
Where is laravel's log?
The log files are located in the storage / logs folder. Laravel.log is the default file name. If there is a permission problem with the log folder, Laravel pauses.
The php artisan tail command can be used to view real-time programs running log, especially useful when debug mode is turned off (e. G. production environment).
Use
Development and use
By default, tail is only for local code
Php artisan tail
When developing, you can also open the LOG of the SQL query statement and use it with php artisan tail to monitor and tune SQL.
The journal is very important. Local developers can turn on debug mode, but viewing logs for online projects is a very simple and effective debugging tool. Laravel integrates the Monolog log library to provide a variety of powerful log processors.
Laravel supports logging methods single, daily, syslog and errorlog. For example, if you want log files to be generated on a daily basis instead of a single file, you should set the log value in the configuration file config/app.php as follows:
'log' = >' daily'
The system defaults to single
# config/app.php:111'log' = > env ('APP_LOG',' single'), that's all for "what do you think of laravel's log"? thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 244
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.