Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@loglayer/shared

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loglayer/shared - npm Package Compare versions

Comparing version
3.1.1
to
3.2.0
+27
-2
dist/index.d.cts

@@ -704,5 +704,7 @@ //#region src/common.types.d.ts

* Replaces all existing transports with new ones while preserving other logger configuration.
* When used with child loggers, it only affects the current logger instance
* and does not modify the parent's transports.
*
* Transport changes only affect the current logger instance. Child loggers
* created before the change will retain their original transports, and
* parent loggers are not affected when a child modifies its transports.
*
* @see {@link https://loglayer.dev/logging-api/transport-management.html | Transport Management Docs}

@@ -712,2 +714,25 @@ */

/**
* Adds one or more transports to the existing transports.
* If a transport with the same ID already exists, it will be replaced.
*
* Transport changes only affect the current logger instance. Child loggers
* created before the change will retain their original transports, and
* parent loggers are not affected when a child modifies its transports.
*
* @see {@link https://loglayer.dev/logging-api/transport-management.html | Transport Management Docs}
*/
addTransport(transports: LogLayerTransport | Array<LogLayerTransport>): This;
/**
* Removes a transport by its ID.
*
* Transport changes only affect the current logger instance. Child loggers
* created before the change will retain their original transports, and
* parent loggers are not affected when a child modifies its transports.
*
* @returns true if the transport was found and removed, false otherwise.
*
* @see {@link https://loglayer.dev/logging-api/transport-management.html | Transport Management Docs}
*/
removeTransport(id: string): boolean;
/**
* Replaces all existing plugins with new ones.

@@ -714,0 +739,0 @@ *

@@ -704,5 +704,7 @@ //#region src/common.types.d.ts

* Replaces all existing transports with new ones while preserving other logger configuration.
* When used with child loggers, it only affects the current logger instance
* and does not modify the parent's transports.
*
* Transport changes only affect the current logger instance. Child loggers
* created before the change will retain their original transports, and
* parent loggers are not affected when a child modifies its transports.
*
* @see {@link https://loglayer.dev/logging-api/transport-management.html | Transport Management Docs}

@@ -712,2 +714,25 @@ */

/**
* Adds one or more transports to the existing transports.
* If a transport with the same ID already exists, it will be replaced.
*
* Transport changes only affect the current logger instance. Child loggers
* created before the change will retain their original transports, and
* parent loggers are not affected when a child modifies its transports.
*
* @see {@link https://loglayer.dev/logging-api/transport-management.html | Transport Management Docs}
*/
addTransport(transports: LogLayerTransport | Array<LogLayerTransport>): This;
/**
* Removes a transport by its ID.
*
* Transport changes only affect the current logger instance. Child loggers
* created before the change will retain their original transports, and
* parent loggers are not affected when a child modifies its transports.
*
* @returns true if the transport was found and removed, false otherwise.
*
* @see {@link https://loglayer.dev/logging-api/transport-management.html | Transport Management Docs}
*/
removeTransport(id: string): boolean;
/**
* Replaces all existing plugins with new ones.

@@ -714,0 +739,0 @@ *

+1
-1
{
"name": "@loglayer/shared",
"description": "Shared utilities and types for loglayer packages.",
"version": "3.1.1",
"version": "3.2.0",
"type": "module",

@@ -6,0 +6,0 @@ "main": "./dist/index.cjs",