All files / src/logging index.ts

100% Statements 23/23
100% Branches 0/0
100% Functions 19/19
100% Lines 22/22

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 43 44 45 46 47 48 49 50                                  106x     104x 106x 106x 106x 106x 106x 106x 106x 106x 106x       104x 106x 298x 106x 149x 106x 106x         104x 106x 190x 106x    
/**
 * Logging Module - Condensed Access Log Format
 *
 * Exports all logging utilities for request stack aggregation
 * and connection tracking.
 */
 
// Types
export type {
  RequestStack,
  ConnectionStats,
  AccessLogEntry,
  ConnectionCloseEntry,
  ConnectionCloseReason,
  LogFormat,
} from "./types.js";
 
export { DEFAULT_LOG_FORMAT } from "./types.js";
 
// Access Log Formatter
export {
  AccessLogFormatter,
  truncateSessionId,
  formatDuration,
  formatGitLabStatus,
  formatDetails,
  formatAccessLog,
  formatConnectionClose,
  createAccessLogEntry,
  createConnectionCloseEntry,
} from "./access-log.js";
 
// Request Tracker
export {
  RequestTracker,
  getRequestTracker,
  resetRequestTracker,
  getCurrentRequestId,
  runWithRequestContext,
  runWithRequestContextAsync,
  type RequestContext,
} from "./request-tracker.js";
 
// Connection Tracker
export {
  ConnectionTracker,
  getConnectionTracker,
  resetConnectionTracker,
} from "./connection-tracker.js";