Sign In

@applitools/logger

Package Overview
Dependencies
Maintainers
48
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/logger - npm Package Compare versions

Comparing version
2.2.0
to
2.2.1
+11
-0
CHANGELOG.md
# Changelog
## [2.2.1](https://github.com/Applitools-Dev/sdk/compare/js/logger@2.2.0...js/logger@2.2.1) (2025-08-05)
### Dependencies
* @applitools/utils bumped to 1.11.0
#### Features
* improve configuration handling ([#3130](https://github.com/Applitools-Dev/sdk/issues/3130)) ([def7be1](https://github.com/Applitools-Dev/sdk/commit/def7be1dd07460f49142cddfe55203baa884e6c3))
* make utils.general.guid crypto secured ([#3137](https://github.com/Applitools-Dev/sdk/issues/3137)) ([775df08](https://github.com/Applitools-Dev/sdk/commit/775df08307e41402a6603812205bc857bd3f936e))
## [2.2.0](https://github.com/Applitools-Dev/sdk/compare/js/logger@2.1.5...js/logger@2.2.0) (2025-07-30)

@@ -4,0 +15,0 @@

+10
-2

@@ -10,2 +10,3 @@ "use strict";

const waiter = makeWaiter();
let loggerExtension = undefined;
const logger = (0, logger_1.makeLogger)({

@@ -15,2 +16,3 @@ handler: {

calls.push({ level: 'info', message });
loggerExtension === null || loggerExtension === void 0 ? void 0 : loggerExtension.log(message);
waiter.notifyAll();

@@ -20,2 +22,3 @@ },

calls.push({ level: 'error', message });
loggerExtension === null || loggerExtension === void 0 ? void 0 : loggerExtension.error(message);
waiter.notifyAll();

@@ -25,2 +28,3 @@ },

calls.push({ level: 'warn', message });
loggerExtension === null || loggerExtension === void 0 ? void 0 : loggerExtension.warn(message);
waiter.notifyAll();

@@ -30,2 +34,3 @@ },

calls.push({ level: 'fatal', message });
loggerExtension === null || loggerExtension === void 0 ? void 0 : loggerExtension.fatal(message);
waiter.notifyAll();

@@ -55,6 +60,9 @@ },

},
extend: (anotherLogger) => {
logger.log('not extending spy logger with logger', anotherLogger);
extend: (_anotherLogger) => {
return logger;
},
wrap: (anotherLogger) => {
loggerExtension = anotherLogger;
return logger;
},
get isSpyLogger() {

@@ -61,0 +69,0 @@ return true;

+2
-2
{
"name": "@applitools/logger",
"version": "2.2.0",
"version": "2.2.1",
"description": "Applitools logger",

@@ -52,3 +52,3 @@ "keywords": [

"dependencies": {
"@applitools/utils": "1.10.0",
"@applitools/utils": "1.11.0",
"chalk": "4.1.2",

@@ -55,0 +55,0 @@ "debug": "4.3.4"

@@ -16,2 +16,3 @@ import type { LogLevel } from './log-level';

}): Logger;
wrap?(anotherLogger: Logger): Logger;
colorize(string: string, options?: {

@@ -18,0 +19,0 @@ color?: Style | Style[];