@process-engine/logging_api_core
Advanced tools
Comparing version 2.0.0-feature-298c5e-k1uif5l8 to 2.0.0-feature-2dc637-k2bwp9n8
@@ -13,11 +13,9 @@ define(["require", "exports"], function (require, exports) { | ||
} | ||
async writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, message, timestamp) { | ||
async writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, measuredAt, message, timestamp, error) { | ||
await this | ||
.loggingRepository | ||
.writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, message, timestamp); | ||
.writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, measuredAt, message, timestamp, error); | ||
} | ||
async writeLogForFlowNode(correlationId, processModelId, processInstanceId, flowNodeInstanceId, flowNodeId, logLevel, message, timestamp) { | ||
await this | ||
.loggingRepository | ||
.writeLogForFlowNode(correlationId, processModelId, processInstanceId, flowNodeInstanceId, flowNodeId, logLevel, message, timestamp); | ||
async writeLogForFlowNode(correlationId, processModelId, processInstanceId, flowNodeInstanceId, flowNodeId, logLevel, measuredAt, tokenPayload, message, timestamp, error) { | ||
await this.loggingRepository.writeLogForFlowNode(correlationId, processModelId, processInstanceId, flowNodeInstanceId, flowNodeId, logLevel, measuredAt, tokenPayload, message, timestamp, error); | ||
} | ||
@@ -24,0 +22,0 @@ async archiveProcessModelLogs(identity, processModelId) { |
@@ -12,11 +12,9 @@ "use strict"; | ||
} | ||
async writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, message, timestamp) { | ||
async writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, measuredAt, message, timestamp, error) { | ||
await this | ||
.loggingRepository | ||
.writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, message, timestamp); | ||
.writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, measuredAt, message, timestamp, error); | ||
} | ||
async writeLogForFlowNode(correlationId, processModelId, processInstanceId, flowNodeInstanceId, flowNodeId, logLevel, message, timestamp) { | ||
await this | ||
.loggingRepository | ||
.writeLogForFlowNode(correlationId, processModelId, processInstanceId, flowNodeInstanceId, flowNodeId, logLevel, message, timestamp); | ||
async writeLogForFlowNode(correlationId, processModelId, processInstanceId, flowNodeInstanceId, flowNodeId, logLevel, measuredAt, tokenPayload, message, timestamp, error) { | ||
await this.loggingRepository.writeLogForFlowNode(correlationId, processModelId, processInstanceId, flowNodeInstanceId, flowNodeId, logLevel, measuredAt, tokenPayload, message, timestamp, error); | ||
} | ||
@@ -23,0 +21,0 @@ async archiveProcessModelLogs(identity, processModelId) { |
@@ -1,2 +0,2 @@ | ||
import { ILoggingApi, ILoggingRepository, LogEntry, LogLevel } from '@process-engine/logging_api_contracts'; | ||
import { ILoggingApi, ILoggingRepository, LogEntry, LogLevel, MetricMeasurementPoint } from '@process-engine/logging_api_contracts'; | ||
import { IIAMService, IIdentity } from '@essential-projects/iam_contracts'; | ||
@@ -8,5 +8,5 @@ export declare class LoggingApiService implements ILoggingApi { | ||
readLogForProcessModel(identity: IIdentity, processModelId: string): Promise<Array<LogEntry>>; | ||
writeLogForProcessModel(correlationId: string, processModelId: string, processInstanceId: string, logLevel: LogLevel, message: string, timestamp: Date): Promise<void>; | ||
writeLogForFlowNode(correlationId: string, processModelId: string, processInstanceId: string, flowNodeInstanceId: string, flowNodeId: string, logLevel: LogLevel, message: string, timestamp: Date): Promise<void>; | ||
writeLogForProcessModel(correlationId: string, processModelId: string, processInstanceId: string, logLevel: LogLevel, measuredAt: MetricMeasurementPoint, message?: string, timestamp?: Date, error?: Error): Promise<void>; | ||
writeLogForFlowNode(correlationId: string, processModelId: string, processInstanceId: string, flowNodeInstanceId: string, flowNodeId: string, logLevel: LogLevel, measuredAt: MetricMeasurementPoint, tokenPayload: any, message?: string, timestamp?: Date, error?: Error): Promise<void>; | ||
archiveProcessModelLogs(identity: IIdentity, processModelId: string): Promise<void>; | ||
} |
{ | ||
"name": "@process-engine/logging_api_core", | ||
"version": "2.0.0-feature-298c5e-k1uif5l8", | ||
"version": "2.0.0-feature-2dc637-k2bwp9n8", | ||
"description": "Contains all the core components for the logging api. ", | ||
@@ -24,3 +24,3 @@ "main": "dist/commonjs/index.js", | ||
"dependencies": { | ||
"@process-engine/logging_api_contracts": "feature~implement_log_archival", | ||
"@process-engine/logging_api_contracts": "feature~import_values_from_metrics_api", | ||
"moment": "^2.24.0" | ||
@@ -31,5 +31,5 @@ }, | ||
"@process-engine/ci_tools": "^2.2.0", | ||
"@types/node": "^10.12.2", | ||
"eslint": "^5.16.0", | ||
"typescript": "^3.4.5" | ||
"@types/node": "^12.11.7", | ||
"eslint": "^6.6.0", | ||
"typescript": "^3.6.4" | ||
}, | ||
@@ -36,0 +36,0 @@ "scripts": { |
import { | ||
ILoggingApi, ILoggingRepository, LogEntry, LogLevel, | ||
ILoggingApi, | ||
ILoggingRepository, | ||
LogEntry, | ||
LogLevel, | ||
MetricMeasurementPoint, | ||
} from '@process-engine/logging_api_contracts'; | ||
@@ -27,8 +31,10 @@ | ||
logLevel: LogLevel, | ||
message: string, | ||
timestamp: Date, | ||
measuredAt: MetricMeasurementPoint, | ||
message?: string, | ||
timestamp?: Date, | ||
error?: Error, | ||
): Promise<void> { | ||
await this | ||
.loggingRepository | ||
.writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, message, timestamp); | ||
.writeLogForProcessModel(correlationId, processModelId, processInstanceId, logLevel, measuredAt, message, timestamp, error); | ||
} | ||
@@ -43,8 +49,21 @@ | ||
logLevel: LogLevel, | ||
message: string, | ||
timestamp: Date, | ||
measuredAt: MetricMeasurementPoint, | ||
tokenPayload: any, | ||
message?: string, | ||
timestamp?: Date, | ||
error?: Error, | ||
): Promise<void> { | ||
await this | ||
.loggingRepository | ||
.writeLogForFlowNode(correlationId, processModelId, processInstanceId, flowNodeInstanceId, flowNodeId, logLevel, message, timestamp); | ||
await this.loggingRepository.writeLogForFlowNode( | ||
correlationId, | ||
processModelId, | ||
processInstanceId, | ||
flowNodeInstanceId, | ||
flowNodeId, | ||
logLevel, | ||
measuredAt, | ||
tokenPayload, | ||
message, | ||
timestamp, | ||
error, | ||
); | ||
} | ||
@@ -51,0 +70,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
12901
179