Skip to content

Enhance CLI output with ASCII sun art and suppress INFO log messages #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jun 17, 2025

This PR improves the user experience of the Weather CLI application by adding visual enhancements and cleaning up console output.

Changes Made

🌞 ASCII Sun Art Enhancement

  • Added beautiful ASCII sun graphics that display with weather information
  • Created src/main/resources/art/sun.txt containing the sun artwork
  • Implemented loadAsciiArt() method to load ASCII art from resources
  • Added displayWeatherWithArt() method for enhanced weather display with improved formatting

🔇 Logger INFO Message Suppression

  • Updated logging.properties to suppress INFO level messages from console output
  • Changed console handler level from INFO to WARNING (only WARNING and SEVERE messages shown)
  • Replaced logger INFO calls for usage messages with direct System.out.println to avoid formatting clutter
  • Preserved SEVERE error messages for proper error reporting

Before vs After

Before:

[2025-06-17 12:25:30] [INFO   ] com.weather.app.WeatherApp main - Weather request for city: London 
Current Weather for London:
-------------------------------------
Weather for London:
Temperature: 22.5°C
Conditions: Clear sky

After:


         \   |   /
          \  |  /
       --- \ | / ---
           \ | /
        --- \|/ ---
      ====== * ======
        --- /|\ ---
           / | \
       --- / | \ ---
          /  |  \
         /   |   \

     ☀️  ☀️  ☀️  ☀️  ☀️  ☀️  ☀️

Current Weather for London:
========================================
Weather for London:
Temperature: 22.5°C
Conditions: Clear sky

Technical Details

  • Minimal Changes: Only modified logging configuration and display logic
  • Backward Compatibility: All existing functionality preserved
  • Error Handling: SEVERE messages still properly displayed for debugging
  • Resource Management: ASCII art loaded efficiently using try-with-resources
  • Testing: All existing tests pass without modification

Validation

✅ Usage messages display cleanly without logger formatting
✅ SEVERE error messages remain visible for troubleshooting
✅ ASCII sun art displays correctly with weather data
✅ All tests pass
✅ Build and packaging work correctly

Fixes #10.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] Improve CLI output with ASCII shining sun and remove logger INFO printout Enhance CLI output with ASCII sun art and suppress INFO log messages Jun 17, 2025
@Copilot Copilot AI requested a review from EficodeRjpalt June 17, 2025 12:31
Copilot finished work on behalf of EficodeRjpalt June 17, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve CLI output with ASCII shining sun and remove logger INFO printout
2 participants