UNPKG

traceperf

Version:

High-performance function execution tracking and monitoring for Node.js

79 lines (78 loc) 1.71 kB
import { LogLevel, LogMode, ILoggerConfig } from '../types'; /** * Default configuration for the logger */ export declare const DEFAULT_CONFIG: ILoggerConfig; /** * Log level priorities (higher number = higher priority) */ export declare const LOG_LEVEL_PRIORITY: Record<LogLevel, number>; /** * Minimum log level for each mode */ export declare const MODE_MIN_LEVELS: Record<LogMode, LogLevel>; /** * ANSI color codes for terminal output */ export declare const COLORS: { reset: string; bright: string; dim: string; underscore: string; fg: { black: string; red: string; green: string; yellow: string; blue: string; magenta: string; cyan: string; white: string; gray: string; }; bg: { black: string; red: string; green: string; yellow: string; blue: string; magenta: string; cyan: string; white: string; }; }; /** * Log level colors */ export declare const LEVEL_COLORS: Record<LogLevel, string>; /** * Log level icons */ export declare const LEVEL_ICONS: Record<LogLevel, string>; /** * Box drawing characters for ASCII flow charts */ export declare const BOX_CHARS: { topLeft: string; topRight: string; bottomLeft: string; bottomRight: string; horizontal: string; vertical: string; verticalRight: string; verticalLeft: string; horizontalDown: string; horizontalUp: string; cross: string; downArrow: string; }; /** * Performance icons */ export declare const PERFORMANCE_ICONS: { timer: string; slow: string; memory: string; bottleneck: string; fix: string; };