neru-alpha
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -25,3 +25,3 @@ import { CommandService } from './commandService.js'; | ||
context?: LogContext; | ||
constructor(id: string, apiApplicationId: string, apiAccountId: string, logId: string, timestamp: string, logLevel: 'error' | 'warn' | 'info' | 'debug', message: string, sourceType: 'application' | 'provider', sourceId: string, context: LogContext); | ||
constructor(id: string, apiApplicationId: string, apiAccountId: string, logId: string, timestamp: string, logLevel: 'error' | 'warn' | 'info' | 'debug', message: string, sourceType: 'application' | 'provider', sourceId: string, instanceId: string, context: LogContext); | ||
} | ||
@@ -28,0 +28,0 @@ export declare class Logger { |
@@ -51,3 +51,3 @@ "use strict"; | ||
var LogAction = /** @class */ (function () { | ||
function LogAction(id, apiApplicationId, apiAccountId, logId, timestamp, logLevel, message, sourceType, sourceId, context) { | ||
function LogAction(id, apiApplicationId, apiAccountId, logId, timestamp, logLevel, message, sourceType, sourceId, instanceId, context) { | ||
this.id = logId; | ||
@@ -54,0 +54,0 @@ this.session_id = id; |
@@ -129,3 +129,3 @@ "use strict"; | ||
Session.prototype.log = function (level, message, context) { | ||
var logAction = new logger_js_1.LogAction(this.id, this.config.apiApplicationId, this.config.apiAccountId, this.bridge.uuid(), this.bridge.isoDate(), level, message, 'application', this.config.instanceServiceName, context); | ||
var logAction = new logger_js_1.LogAction(this.id, this.config.apiApplicationId, this.config.apiAccountId, this.bridge.uuid(), this.bridge.isoDate(), level, message, 'application', this.config.instanceServiceName, this.config.instanceId, context); | ||
this.logger.log(logAction); | ||
@@ -132,0 +132,0 @@ }; |
@@ -25,3 +25,3 @@ import { CommandService } from './commandService.js'; | ||
context?: LogContext; | ||
constructor(id: string, apiApplicationId: string, apiAccountId: string, logId: string, timestamp: string, logLevel: 'error' | 'warn' | 'info' | 'debug', message: string, sourceType: 'application' | 'provider', sourceId: string, context: LogContext); | ||
constructor(id: string, apiApplicationId: string, apiAccountId: string, logId: string, timestamp: string, logLevel: 'error' | 'warn' | 'info' | 'debug', message: string, sourceType: 'application' | 'provider', sourceId: string, instanceId: string, context: LogContext); | ||
} | ||
@@ -28,0 +28,0 @@ export declare class Logger { |
@@ -48,3 +48,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
var LogAction = /** @class */ (function () { | ||
function LogAction(id, apiApplicationId, apiAccountId, logId, timestamp, logLevel, message, sourceType, sourceId, context) { | ||
function LogAction(id, apiApplicationId, apiAccountId, logId, timestamp, logLevel, message, sourceType, sourceId, instanceId, context) { | ||
this.id = logId; | ||
@@ -51,0 +51,0 @@ this.session_id = id; |
@@ -126,3 +126,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
Session.prototype.log = function (level, message, context) { | ||
var logAction = new LogAction(this.id, this.config.apiApplicationId, this.config.apiAccountId, this.bridge.uuid(), this.bridge.isoDate(), level, message, 'application', this.config.instanceServiceName, context); | ||
var logAction = new LogAction(this.id, this.config.apiApplicationId, this.config.apiAccountId, this.bridge.uuid(), this.bridge.isoDate(), level, message, 'application', this.config.instanceServiceName, this.config.instanceId, context); | ||
this.logger.log(logAction); | ||
@@ -129,0 +129,0 @@ }; |
{ | ||
"name": "neru-alpha", | ||
"type": "module", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "", | ||
@@ -6,0 +6,0 @@ "main": "dist/cjs/neru.js", |
@@ -45,3 +45,4 @@ import { CommandService } from './commandService.js'; | ||
sourceId: string, | ||
context: LogContext | ||
instanceId: string, | ||
context: LogContext, | ||
) { | ||
@@ -48,0 +49,0 @@ this.id = logId; |
@@ -145,2 +145,3 @@ import { State } from './providers/state.js'; | ||
this.config.instanceServiceName, | ||
this.config.instanceId, | ||
context | ||
@@ -147,0 +148,0 @@ ); |
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
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
436015
7210