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.

41 lines 1.8 kB
/** * Type definitions for the Log Engine library * Provides strongly-typed interfaces for configuration and log levels */ /** * Log levels representing message severity (lowest to highest) * Used for filtering messages based on importance */ export 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 || (LogLevel = {})); /** * Log modes controlling output behavior and filtering * Determines what messages are displayed based on verbosity requirements */ export 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 || (LogMode = {})); //# sourceMappingURL=index.js.map