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.

44 lines 1.95 kB
"use strict"; /** * Type definitions for the Log Engine library * Provides strongly-typed interfaces for configuration and log levels */ Object.defineProperty(exports, "__esModule", { value: true }); exports.LogMode = exports.LogLevel = void 0; /** * Log levels representing message severity (lowest to highest) * Used for filtering messages based on importance */ var LogLevel; (function (LogLevel) { /** Detailed diagnostic information, typically only of interest during development */ LogLevel[LogLevel["DEBUG"] = 0] = "DEBUG"; /** General information about application flow and state */ LogLevel[LogLevel["INFO"] = 1] = "INFO"; /** Potentially harmful situations that don't prevent operation */ LogLevel[LogLevel["WARN"] = 2] = "WARN"; /** Error events that might still allow the application to continue */ LogLevel[LogLevel["ERROR"] = 3] = "ERROR"; /** Critical messages that always output regardless of configured mode (except when OFF is set) */ LogLevel[LogLevel["LOG"] = 99] = "LOG"; })(LogLevel || (exports.LogLevel = LogLevel = {})); /** * Log modes controlling output behavior and filtering * Determines what messages are displayed based on verbosity requirements */ var LogMode; (function (LogMode) { /** Most verbose - shows DEBUG, INFO, WARN, ERROR, LOG messages */ LogMode[LogMode["DEBUG"] = 0] = "DEBUG"; /** Balanced - shows INFO, WARN, ERROR, LOG messages */ LogMode[LogMode["INFO"] = 1] = "INFO"; /** Focused - shows WARN, ERROR, LOG messages */ LogMode[LogMode["WARN"] = 2] = "WARN"; /** Minimal - shows ERROR, LOG messages */ LogMode[LogMode["ERROR"] = 3] = "ERROR"; /** Critical only - shows LOG messages only */ LogMode[LogMode["SILENT"] = 4] = "SILENT"; /** Complete silence - shows no messages at all */ LogMode[LogMode["OFF"] = 5] = "OFF"; })(LogMode || (exports.LogMode = LogMode = {})); //# sourceMappingURL=index.js.map