From 4b0f3e0621c3cfafb29e641d027d7fac84e29de9 Mon Sep 17 00:00:00 2001 From: "Joseph.Rawlings" Date: Thu, 4 Dec 2025 08:18:29 -0500 Subject: [PATCH] feat: add option to clear Laravel log in runner script for improved log management --- runner.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/runner.sh b/runner.sh index 515e6fca8..881c238a8 100755 --- a/runner.sh +++ b/runner.sh @@ -21,7 +21,8 @@ $divider [2] Run gitpush.sh [3] Run laravallog.sh [4] Run laravalcache.sh - [5] Exit + [5] Clear Laravel log + [6] Exit $divider Select an option by pressing the number key. EOF @@ -47,6 +48,15 @@ EOF "$git_cache" ;; 5) + LOG_FILE="${SCRIPT_DIR}/storage/logs/laravel.log" + if [ -f "$LOG_FILE" ]; then + > "$LOG_FILE" + echo "Log file cleared successfully: $LOG_FILE" + else + echo "Log file not found: $LOG_FILE" + fi + ;; + 6) echo "Goodbye!" exit 0 ;;