UNPKG

logstack-zee

Version:

Complete Node.js logging solution with 6 integration methods, S3 bidirectional operations, advanced analytics, and multi-cloud storage support for enterprise-scale applications.

55 lines (54 loc) 1.69 kB
/** * 🏁 Final Comprehensive Local Test - Cron Log Service * * This test demonstrates the complete functionality of the logstack * with local file storage, including: * - Real-time API logs processing from database * - High-performance batch processing for large datasets * - Local file storage with organized directory structure * - Performance monitoring and optimization * - Complete end-to-end testing */ import { Config } from '../types/config'; declare const localConfig: Config; declare function generateSampleApiLogs(count?: number): Promise<{ request_time: Date; response_time: Date; method: string; path: string; requestBody: { data: string; userId: number; timestamp: string; } | undefined; requestHeaders: { 'content-type': string; 'user-agent': string; authorization: string; }; responseStatus: number; responseBody: { success: boolean; message: string; data: { id: number; } | null; }; requestQuery: { q: string; limit: number; } | { q?: undefined; limit?: undefined; }; requestParams: { id: number; }; client_ip: string; client_agent: string; }[]>; declare function processApiLogsBatch(startDate: Date, endDate: Date, batchSize?: number): Promise<void>; declare function streamProcessApiLogs(): Promise<void>; declare function generateAnalyticsReport(): Promise<void>; declare function runFinalLocalTest(): Promise<void>; export { localConfig, generateSampleApiLogs, processApiLogsBatch, streamProcessApiLogs, generateAnalyticsReport, runFinalLocalTest };