Description:
Port logger.js to Python, creating a centralized logging utility compatible with Python's logging module.
Acceptance Criteria:
Technical Details:
- Use Python's built-in
logging module
- Return configured logger instances
- Support custom formatters
- Compatible with both console and file outputs
Example Usage:
from indexedcp.logger import create_logger
logger = create_logger("IndexedCP.Client", level="INFO")
logger.info("Client initialized")
Description:
Port logger.js to Python, creating a centralized logging utility compatible with Python's logging module.
Acceptance Criteria:
src/indexedcp/logger.pycreate_logger(name, level)functiontests/test_logger.pyTechnical Details:
loggingmoduleExample Usage: