Closed bbakalov closed 7 months ago
New "Log" File Additions A new file named "log" has been introduced in the "compose/bin" directory which will help in keeping a record of the program execution.
Improved Script Functionality The script has been enhanced to offer clear information about its use, arguments and options via a new function called "display_help". Now, when the script is run with "-h" or "--help", it will provide helpful usage information.
Enhanced Log File Path Generation & Retrieval Two crucial functions namely "generate_logs_file_path" and "get_all_logs_file_path" have been added. The former will help generate a path for log files based on the container path and specified log files while the latter makes it easy to accumulate all log files' path from a specific location.
Specific Log File Tracking The script has been further updated to check for specific log files that might be provided as arguments. This allows tailored actions to be performed based on the provided log files.
Log Monitoring Capability A new command has been added to continuously monitor the logs using "bin/docker-compose exec phpfpm tail -f". This update will ensure we are immediately updated about the latest changes or issues that might occur.
Hi, @bbakalov
Check this PR Added script for log viewer
Hi, @bbakalov
Check this PR Added script for log viewer
Hello @YevhenZvieriev your work looks cool. But I think it is also good to somehow combine your approach and mine. As I see it, in your log viewer, there is no possibility to tail logs in real time.
@bbakalov I added the possibility to tail logs in real-time in this commit
@bbakalov I added the possibility to tail logs in real-time in this commit
Jesus) you are the best) Waiting while your code will be merge.
You made a good job. Thx)
Hey all,
I reviewed both PRs and I actually like this one a lot better. It's much simpler, and it "just works" as I would expect it to work. I ran bin/log
and the logs were immediately outputted. Then tested with --help
and then bin/log system.log
, and it just worked... immediately.
I see no reason to not move forward with this script. I appreciate both of your efforts and hate to choose between two nicely-written PRs, but I think this one wins out for it's simplicity and lack of UI -- it's more intuitive.
It's the new command bin/log that tail logs from the Magento var/log folder all and specific logs.
Usage: bin/log __
Arguments: specific_log_files If specific_log_files are NOT provided, show all logs. Example:
Options: -h, --help Display help message