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.

36 lines 1.14 kB
/** * Environment detection utilities for logging configuration * Handles automatic environment-based configuration */ import { LogMode } from '../types'; /** * Environment detection and configuration utilities */ export declare class EnvironmentDetector { /** * Get the normalized NODE_ENV value * @returns Normalized NODE_ENV (trimmed and lowercase) */ private static getNormalizedNodeEnv; /** * Determines the appropriate log mode based on NODE_ENV * @returns LogMode appropriate for current environment */ static getEnvironmentMode(): LogMode; /** * Check if we're in a test environment * @returns true if NODE_ENV is 'test' */ static isTestEnvironment(): boolean; /** * Check if we're in a development environment * @returns true if NODE_ENV is 'development' */ static isDevelopmentEnvironment(): boolean; /** * Check if we're in a production environment * @returns true if NODE_ENV is 'production' */ static isProductionEnvironment(): boolean; } //# sourceMappingURL=environment.d.ts.map