fix(core): update
This commit is contained in:
parent
ab9a7891a7
commit
9f81cdfb8a
11
package-lock.json
generated
11
package-lock.json
generated
@ -1120,6 +1120,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"@pushrocks/isounique": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fisounique/-/isounique-1.0.4.tgz",
|
||||
"integrity": "sha512-P1xLsuA1+8LQpoWCo2nP2vIQXKGUl5wDWU6CD7xTDZc3uw0He5V/qCPHM5zpIZsS7IuZOxDDpWb7aFveB11tXw=="
|
||||
},
|
||||
"@pushrocks/lik": {
|
||||
"version": "4.0.13",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2flik/-/lik-4.0.13.tgz",
|
||||
@ -1289,9 +1294,9 @@
|
||||
}
|
||||
},
|
||||
"@pushrocks/smartlog-interfaces": {
|
||||
"version": "2.0.12",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog-interfaces/-/smartlog-interfaces-2.0.12.tgz",
|
||||
"integrity": "sha512-Dfaran6LPAgkfBXgXrveYvpu5oN9gCvq9629XI/ThLV8POkGPQgxF4nw6hC1MIWzxmA/DaVABcTGhNKiv8bQhw==",
|
||||
"version": "2.0.15",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog-interfaces/-/smartlog-interfaces-2.0.15.tgz",
|
||||
"integrity": "sha512-C9AQGs0QI2xmcIbb2A32rg1rebHavpXGJ1LXBSLpSvctyrBppxWjut7kihgU5nqxYYw+Cr+wl5DA1pSIPQ1R0w==",
|
||||
"requires": {
|
||||
"@apiglobal/typedrequest-interfaces": "^1.0.13"
|
||||
}
|
||||
|
@ -30,7 +30,8 @@
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartlog-interfaces": "^2.0.12"
|
||||
"@pushrocks/isounique": "^1.0.4",
|
||||
"@pushrocks/smartlog-interfaces": "^2.0.15"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
@ -61,12 +61,16 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
|
||||
* @param logLevelArg - the log level
|
||||
* @param logMessageArg - the log message
|
||||
* @param logDataArg - any additional log data
|
||||
* @param correlationArg - info about corrleations
|
||||
*/
|
||||
public log(
|
||||
logLevelArg: plugins.smartlogInterfaces.TLogLevel,
|
||||
logMessageArg: string,
|
||||
logDataArg?: any,
|
||||
logCorrelationIdArg: string = '123'
|
||||
correlationArg: plugins.smartlogInterfaces.ILogCorrelation = {
|
||||
id: plugins.isounique.uni(),
|
||||
type: 'none'
|
||||
}
|
||||
) {
|
||||
if (this.consoleEnabled) {
|
||||
this.safeConsoleLog(
|
||||
@ -78,7 +82,7 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
|
||||
type: 'log',
|
||||
context: this.logContext,
|
||||
level: logLevelArg,
|
||||
correlationId: logCorrelationIdArg,
|
||||
correlation: correlationArg,
|
||||
message: logMessageArg
|
||||
};
|
||||
if (logDataArg) {
|
||||
@ -91,7 +95,10 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
|
||||
logLevelArg: plugins.smartlogInterfaces.TLogLevel,
|
||||
logMessageArg: string,
|
||||
logDataArg?: any,
|
||||
logCorrelationIdArg: string = '123'
|
||||
correlationArg: plugins.smartlogInterfaces.ILogCorrelation = {
|
||||
id: plugins.isounique.uni(),
|
||||
type: 'none'
|
||||
}
|
||||
) {
|
||||
if (this.consoleEnabled) {
|
||||
this.safeConsoleLog(`INCREMENT: ${logLevelArg}: ${logMessageArg}`);
|
||||
@ -102,7 +109,7 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
|
||||
context: this.logContext,
|
||||
level: logLevelArg,
|
||||
message: logMessageArg,
|
||||
correlationId: logCorrelationIdArg
|
||||
correlation: correlationArg
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
import * as isounique from '@pushrocks/isounique';
|
||||
import * as smartlogInterfaces from '@pushrocks/smartlog-interfaces';
|
||||
|
||||
export { smartlogInterfaces };
|
||||
export { isounique, smartlogInterfaces };
|
||||
|
Loading…
Reference in New Issue
Block a user