UNPKG

@bernierllc/logging

Version:

A comprehensive logging package with Winston integration for audit and system logging

25 lines (24 loc) 936 B
"use strict"; /* Copyright (c) 2025 Bernier LLC This file is licensed to the client under a limited-use license. The client may use and modify this code *only within the scope of the project it was delivered for*. Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.LoggingError = void 0; class LoggingError extends Error { code; context; constructor(message, options) { super(message, options?.cause ? { cause: options.cause } : undefined); this.name = 'LoggingError'; this.code = options?.code ?? 'LOGGING_ERROR'; if (options?.context !== undefined) { this.context = options.context; } Error.captureStackTrace?.(this, this.constructor); } } exports.LoggingError = LoggingError; //# sourceMappingURL=errors.js.map