@bitdiver/model
Advanced tools
Comparing version 3.1.2 to 3.2.0
@@ -78,3 +78,3 @@ import { LogAdapterInterface } from '@bitdiver/logadapter'; | ||
* Logs a debug message. | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
@@ -84,33 +84,33 @@ * will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
logDebug(options: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
logDebug(messageObj: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
/** | ||
* Logs a info message. | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
* will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
logInfo(options: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
logInfo(messageObj: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
/** | ||
* Logs a warning message. | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
* will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
logWarning(options: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
logWarning(messageObj: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
/** | ||
* Logs a error message. | ||
* Error normaly means that the testcase gots an error | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
* will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
logError(options: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
logError(messageObj: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
/** | ||
* Logs a fatal message. | ||
* Fatal normaly means that the complete test run needs to be stopped | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
* will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
logFatal(options: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
logFatal(messageObj: any, environmentTestcase?: EnvironmentTestcase): Promise<void>; | ||
/** | ||
@@ -117,0 +117,0 @@ * Calls the logger with the given messageObj. |
@@ -97,3 +97,3 @@ "use strict"; | ||
* Logs a debug message. | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
@@ -103,22 +103,22 @@ * will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
async logDebug(options, environmentTestcase) { | ||
await this._log(options, logadapter_1.LEVEL_DEBUG, environmentTestcase); | ||
async logDebug(messageObj, environmentTestcase) { | ||
await this._log(messageObj, logadapter_1.LEVEL_DEBUG, environmentTestcase); | ||
} | ||
/** | ||
* Logs a info message. | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
* will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
async logInfo(options, environmentTestcase) { | ||
await this._log(options, logadapter_1.LEVEL_INFO, environmentTestcase); | ||
async logInfo(messageObj, environmentTestcase) { | ||
await this._log(messageObj, logadapter_1.LEVEL_INFO, environmentTestcase); | ||
} | ||
/** | ||
* Logs a warning message. | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
* will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
async logWarning(options, environmentTestcase) { | ||
await this._log(options, logadapter_1.LEVEL_WARNING, environmentTestcase); | ||
async logWarning(messageObj, environmentTestcase) { | ||
await this._log(messageObj, logadapter_1.LEVEL_WARNING, environmentTestcase); | ||
} | ||
@@ -128,8 +128,8 @@ /** | ||
* Error normaly means that the testcase gots an error | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
* will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
async logError(options, environmentTestcase) { | ||
await this._log(options, logadapter_1.LEVEL_ERROR, environmentTestcase); | ||
async logError(messageObj, environmentTestcase) { | ||
await this._log(messageObj, logadapter_1.LEVEL_ERROR, environmentTestcase); | ||
} | ||
@@ -139,8 +139,8 @@ /** | ||
* Fatal normaly means that the complete test run needs to be stopped | ||
* @param options - The message to log or the properties | ||
* @param messageObj - The message to log or the properties | ||
* @param environmentTestcase - The testcase environment. If given the log | ||
* will only be written for this testcase. If not the log will be written for all the | ||
*/ | ||
async logFatal(options, environmentTestcase) { | ||
await this._log(options, logadapter_1.LEVEL_FATAL, environmentTestcase); | ||
async logFatal(messageObj, environmentTestcase) { | ||
await this._log(messageObj, logadapter_1.LEVEL_FATAL, environmentTestcase); | ||
} | ||
@@ -147,0 +147,0 @@ /** |
{ | ||
"name": "@bitdiver/model", | ||
"version": "3.1.2", | ||
"version": "3.2.0", | ||
"description": "", | ||
@@ -50,3 +50,3 @@ "main": "dist/src/index.js", | ||
"@types/uuid": "^9.0.0", | ||
"@xhubio/build-base": "1.0.69" | ||
"@xhubio/build-base": "1.0.84" | ||
}, | ||
@@ -53,0 +53,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40579
27
802