utils#
Utility modules and shared functions for Vaani.
Instances of the Logger class represent a single logging channel. |
Logger#
Logger - Professional Logging System#
Features: - Minimal, production-ready logging - Error-focused output (no verbose spam) - Color-coded console output - File logging with rotation (1MB limit, 3 backups) - Module-specific loggers - Configurable log levels - Thread-safe logging - Performance impact minimal - Professional formatting
Provides clean, professional logging that only shows what matters. No emoji spam, no unnecessary info logs - just errors and critical warnings when something needs attention.
Vaani Voice Assistant Copyright (c) 2026 Aman Kumar Pandey. All Rights Reserved.
This file is part of the Vaani Voice Assistant core and is proprietary.
- class Vaani.utils.logger.VaaniLogger[source]#
Bases:
objectCustom logger for Vaani with advanced features
- Vaani.utils.logger.critical(msg, *args, **kwargs)[source]#
Log critical message
- Parameters:
msg (str)
- Vaani.utils.logger.exception(msg, *args, **kwargs)[source]#
Log exception with traceback
- Parameters:
msg (str)
The logger provides consistent logging across all Vaani modules. It’s configured through the LOG_LEVEL environment variable and writes to both console and log files.
Usage:
from Vaani.utils.logger import logger
logger.info("Vaani started")
logger.debug("Debug information")
logger.warning("Something unusual happened")
logger.error("An error occurred")
See Also#
../development/setup - Development setup
core - Core modules