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.

29 lines 1.19 kB
/** * Default configuration and constants for data redaction * Provides comprehensive coverage of common sensitive field patterns */ import { RedactionConfig } from '../types'; /** * Default redaction configuration with comprehensive sensitive field detection * Covers authentication, personal information, financial data, and internal systems */ export declare const defaultRedactionConfig: RedactionConfig; /** * Environment-based redaction controller * Determines when redaction should be disabled based on environment variables */ export declare class RedactionController { /** * Check if redaction should be disabled based on environment variables * Development mode and explicit flags can disable redaction for debugging * @returns true if redaction should be disabled, false otherwise */ static isRedactionDisabled(): boolean; /** * Get environment-specific configuration overrides * Allows customization through environment variables * @returns Partial redaction config with environment-based overrides */ static getEnvironmentConfig(): Partial<RedactionConfig>; } //# sourceMappingURL=config.d.ts.map