@itwin/core-bentley
Advanced tools
Comparing version 3.0.0-dev.101 to 3.0.0-dev.102
@@ -61,2 +61,4 @@ /** @packageDocumentation | ||
static initializeToConsole(): void; | ||
/** merge the supplied metadata with all static metadata into one object */ | ||
static getMetaData(metaData?: LoggingMetaData): object; | ||
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */ | ||
@@ -63,0 +65,0 @@ static stringifyMetaData(metaData?: LoggingMetaData): string; |
@@ -48,4 +48,4 @@ "use strict"; | ||
} | ||
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */ | ||
static stringifyMetaData(metaData) { | ||
/** merge the supplied metadata with all static metadata into one object */ | ||
static getMetaData(metaData) { | ||
const metaObj = {}; | ||
@@ -58,2 +58,7 @@ for (const meta of Logger.staticMetaData) { | ||
Object.assign(metaObj, BentleyError_1.BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence | ||
return metaObj; | ||
} | ||
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */ | ||
static stringifyMetaData(metaData) { | ||
const metaObj = this.getMetaData(metaData); | ||
return Object.keys(metaObj).length > 0 ? JSON.stringify(metaObj) : ""; | ||
@@ -60,0 +65,0 @@ } |
@@ -61,2 +61,4 @@ /** @packageDocumentation | ||
static initializeToConsole(): void; | ||
/** merge the supplied metadata with all static metadata into one object */ | ||
static getMetaData(metaData?: LoggingMetaData): object; | ||
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */ | ||
@@ -63,0 +65,0 @@ static stringifyMetaData(metaData?: LoggingMetaData): string; |
@@ -45,4 +45,4 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */ | ||
static stringifyMetaData(metaData) { | ||
/** merge the supplied metadata with all static metadata into one object */ | ||
static getMetaData(metaData) { | ||
const metaObj = {}; | ||
@@ -55,2 +55,7 @@ for (const meta of Logger.staticMetaData) { | ||
Object.assign(metaObj, BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence | ||
return metaObj; | ||
} | ||
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */ | ||
static stringifyMetaData(metaData) { | ||
const metaObj = this.getMetaData(metaData); | ||
return Object.keys(metaObj).length > 0 ? JSON.stringify(metaObj) : ""; | ||
@@ -57,0 +62,0 @@ } |
{ | ||
"name": "@itwin/core-bentley", | ||
"version": "3.0.0-dev.101", | ||
"version": "3.0.0-dev.102", | ||
"description": "Bentley JavaScript core components", | ||
@@ -25,4 +25,4 @@ "main": "lib/cjs/core-bentley.js", | ||
"devDependencies": { | ||
"@itwin/build-tools": "3.0.0-dev.101", | ||
"@itwin/eslint-plugin": "3.0.0-dev.101", | ||
"@itwin/build-tools": "3.0.0-dev.102", | ||
"@itwin/eslint-plugin": "3.0.0-dev.102", | ||
"@types/chai": "^4.1.4", | ||
@@ -29,0 +29,0 @@ "@types/chai-as-promised": "^7", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1638243
15127