All files / src/lib/logging index.ts

100% Statements 42/42
100% Branches 1/1
9.09% Functions 1/11
100% Lines 42/42

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 431x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/**
 * Unified Logging Module
 *
 * Central export point for all logging utilities.
 *
 * @example
 * ```typescript
 * // Server-side logging
 * import { logger } from '@/lib/logging';
 * logger.info('Server started');
 *
 * // Request context logging
 * import { createRequestLogger, withRequestLogging } from '@/lib/logging';
 *
 * // Client-side logging (in 'use client' components)
 * import { clientLogger } from '@/lib/logging/clientLogger';
 * ```
 */
 
// Core logger
export { logger, Logger, type LogContext, type LogCategory } from './logger';
 
// Request context utilities
export {
  createRequestLogger,
  withRequestLogging,
  withRequestContext,
  withCorrelation,
  extractRequestMetadata,
  addCorrelationHeaders,
  type RequestMetadata,
} from './requestContext';
 
// Configuration
export {
  loggingConfig,
  shouldLog,
  getLogLevelPriority,
  type LogLevel,
  type LoggingConfig,
  type LogCategory as ConfigLogCategory,
} from './config';