Skip to content

Conversation

Girish200127
Copy link

This update fixes the logging configuration issue in the config.py file of the WiFi-Auto-Auth project.

Changes made:

  • Corrected the logging setup to properly record messages.
  • Ensured that log messages display with the appropriate format and level.
  • Verified that logging now works without errors.
    logging_config.py

This improvement enhances debugging and monitoring of the WiFi-Auto-Auth application.

01bps and others added 22 commits February 17, 2025 03:36
updated the setup.md referral link
- Replace all print() statements with structured logging using Python logging module
- Add centralized logging configuration (config/logging_config.py) with factory pattern
- Implement dual output handlers: console (simple format) and file (detailed format)
- Add log rotation using RotatingFileHandler (10MB files, 5 backups by default)
- Support multiple log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL
- Add comprehensive CLI argument parsing for runtime configuration
- Support environment variable configuration for containerized deployments
- Include detailed file logging with module:function:line information
- Add utility functions for common logging patterns (function entry/exit, exceptions)
- Maintain backward compatibility with existing application functionality

Features:
- Configurable via CLI args (--log-level, --log-dir, --view-logs, --no-console-logging)
- Environment variable support (LOG_LEVEL, LOG_DIR, LOG_MAX_BYTES, etc.)
- Professional log formatting with timestamps and context information
- Separate formatters for console (readable) and file (detailed debugging)
- Comprehensive error handling and application flow logging

Closes #original-issue: Professional logging implementation with configurable verbosity levels
Replace hardcoded credentials with config file (fixes 01bps#3)
feat: implement professional logging system with dual output and rotation
@Girish200127
Copy link
Author

This update fixes the logging configuration issue in the config.py file of the WiFi-Auto-Auth project.

Changes made:

  • Corrected the logging setup to properly record messages.
  • Ensured that log messages display with the appropriate format and level.
  • Verified that logging now works without errors.
    logging_config.py

This improvement enhances debugging and monitoring of the WiFi-Auto-Auth application.

@01bps
Copy link
Owner

01bps commented Oct 8, 2025

@Girish200127 Kindly resolve the merge conflicts

@01bps
Copy link
Owner

01bps commented Oct 8, 2025

@Girish200127 have you gone through the issue properly.
There are many changes outside the scope of the feature.Keep all the changes inside the requirement of the feature onlt. Also tag the issue.

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.

7 participants