@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
25 lines (24 loc) • 1.06 kB
TypeScript
/**
* @fileoverview Error logging utilities for the code review tool.
*
* This module provides error logging functionality to capture and persist error
* information for debugging and troubleshooting. It writes detailed error logs
* to files with timestamps and contextual information to help diagnose issues.
*
* Key responsibilities:
* - Capturing error details including stack traces
* - Recording contextual information about the error environment
* - Writing error logs to timestamped files
* - Creating error log directories as needed
* - Providing a consistent error logging interface across the application
*
* These utilities help developers diagnose and fix issues by preserving detailed
* error information that might otherwise be lost in console output.
*/
/**
* Log an error to a file
* @param error Error to log
* @param context Additional context information
* @returns Promise resolving to the path of the error log file
*/
export declare function logError(error: unknown, context?: Record<string, unknown>): Promise<string>;