200->300 Log reg

This commit is contained in:
2025-12-04 01:19:54 +01:00
parent ee260d9e79
commit a653c6eb4e

4
log.sh
View File

@@ -6,9 +6,9 @@ LOG_DIR="/var/www/paymenter/storage/logs"
latest_log=$(ls -t "$LOG_DIR" | head -n 1)
clear
if [ -n "$latest_log" ]; then
echo "Showing last 200 lines of: $latest_log"
echo "Showing last 300 lines of: $latest_log"
echo "----------------------------------------"
tail -n 200 "$LOG_DIR/$latest_log"
tail -n 300 "$LOG_DIR/$latest_log"
else
echo "No log files found in $LOG_DIR"
fi