UNPKG

unnbound-logger-sdk

Version:

A structured logging library with TypeScript support using Pino. Provides consistent, well-typed logging with automatic logId, workflowId, traceId, and deploymentId tracking across operational contexts.

20 lines (19 loc) 829 B
/** * Checks if a path matches any of the ignore patterns * @param path - The path to check * @param patterns - Array of glob patterns to match against * @returns boolean indicating if the path should be ignored */ export declare const shouldIgnorePath: (path: string, patterns: string[]) => boolean; /** * Safely parses JSON strings, returning the original data if parsing fails or if it's not a string. * @param data The data to potentially parse as JSON. * @returns Parsed JSON object or the original data. */ export declare function safeJsonParse(data: any): any; /** * Normalizes IP addresses by removing IPv6 mapping prefix for IPv4 addresses. * @param ip The IP address to normalize. * @returns Normalized IP address string. */ export declare function normalizeIp(ip: string | undefined): string | undefined;