diegobeyl/backtesting
2
1#!/bin/bash2 3# =============================================================================4# Docker Logs Script - Backtesting App V25# =============================================================================6# View logs from Docker services7# =============================================================================8 9# Colors10BLUE='\033[0;34m'11NC='\033[0m'12 13SERVICE="${1:-}"14 15echo ""16echo "=========================================="17echo " Service Logs"18echo "=========================================="19echo ""20 21if [ -z "$SERVICE" ]; then22 echo -e "${BLUE}๐ Following all service logs...${NC}"23 echo "Press Ctrl+C to exit"24 echo ""25 docker-compose logs -f --tail=10026else27 echo -e "${BLUE}๐ Following logs for: ${SERVICE}${NC}"28 echo "Press Ctrl+C to exit"29 echo ""30 docker-compose logs -f --tail=100 "$SERVICE"31fi32 