UNPKG

@wgtechlabs/log-engine

Version:

A lightweight, security-first logging utility with automatic data redaction for Node.js applications - the first logging library with built-in PII protection.

35 lines 1.21 kB
"use strict"; /** * ANSI color codes and color management for terminal output * Provides consistent color definitions used throughout the formatting system */ Object.defineProperty(exports, "__esModule", { value: true }); exports.colorScheme = exports.colors = void 0; /** * ANSI color codes for terminal output styling * Used to create colorized console output with consistent theming */ exports.colors = { reset: '\x1b[0m', // Reset all formatting dim: '\x1b[2m', // Dim/faded text red: '\x1b[31m', // Red text (errors) yellow: '\x1b[33m', // Yellow text (warnings) blue: '\x1b[34m', // Blue text (info) magenta: '\x1b[35m', // Magenta text (debug) cyan: '\x1b[36m', // Cyan text (timestamps) white: '\x1b[37m', // White text (default) gray: '\x1b[90m', // Gray text (timestamps) green: '\x1b[32m' // Green text (log level) }; /** * Color scheme configuration * Maps semantic meanings to specific colors for consistent theming */ exports.colorScheme = { timestamp: exports.colors.gray, timeString: exports.colors.cyan, system: exports.colors.yellow, data: exports.colors.dim, reset: exports.colors.reset }; //# sourceMappingURL=colors.js.map