Changed most of logDebug messages to include additional ids.
MODIFY
src/authorization/Authorizations.ts
src/authorization/Authorizations.ts
@@ -905,6 +905,9 @@ export default class Authorizations {
if (remoteAuthorization.tagId === tag.ocpiToken?.uid) {
await Logging.logDebug({
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
tenantID: tenant.id, action,
message: `${Utils.buildConnectorInfo(connector.connectorId, transaction?.id)} Valid Remote Authorization found for Tag ID '${tag.ocpiToken.uid}'`,

MODIFY
src/client/ocpi/EmspOCPIClient.ts
src/client/ocpi/EmspOCPIClient.ts
@@ -496,6 +496,9 @@ export default class EmspOCPIClient extends OCPIClient {
tenantID: this.tenant.id,
action: ServerAction.OCPI_START_SESSION,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
message: `${Utils.buildConnectorInfo(connectorID)} OCPI Remote Start session response status '${response.status}'`,
module: MODULE_NAME, method: 'remoteStartSession',
@@ -555,6 +558,9 @@ export default class EmspOCPIClient extends OCPIClient {
tenantID: this.tenant.id,
action: ServerAction.OCPI_STOP_SESSION,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
message: `${Utils.buildConnectorInfo(transaction.connectorId, transaction.id)} OCPI Remote Stop response status '${response.status}'`,
module: MODULE_NAME, method: 'remoteStopSession',

MODIFY
src/client/oicp/CpoOICPClient.ts
src/client/oicp/CpoOICPClient.ts
@@ -84,6 +84,9 @@ export default class CpoOICPClient extends OICPClient {
tenantID: this.tenant.id,
user: transaction.user,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
action: ServerAction.OICP_PUSH_SESSIONS,
message: `Start OICP Session ID '${transaction.id}'`,

MODIFY
src/integration/charging-station-vendor/ChargingStationVendorIntegration.ts
src/integration/charging-station-vendor/ChargingStationVendorIntegration.ts
@@ -92,6 +92,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logDebug({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_LIMIT_POWER,
message: `Set Power limitation via OCPP on ${chargePoint.ocppParamForPowerLimitation} key to ${ocppLimitAmpValue} value`,

MODIFY
src/notification/NotificationHandler.ts
src/notification/NotificationHandler.ts
@@ -1254,6 +1254,9 @@ export default class NotificationHandler {
await Logging.logDebug({
tenantID: tenant.id,
siteID: extraParams.chargingStation?.siteID,
+ siteAreaID: extraParams.chargingStation?.siteAreaID,
+ companyID: extraParams.chargingStation?.companyID,
+ chargeBoxID: extraParams.chargingStation?.id,
source: (extraParams.chargingStation ? extraParams.chargingStation.id : null),
module: MODULE_NAME, method: 'saveNotification',
action: sourceDescr,
@@ -1265,6 +1268,9 @@ export default class NotificationHandler {
await Logging.logDebug({
tenantID: tenant.id,
siteID: extraParams.chargingStation?.siteID,
+ siteAreaID: extraParams.chargingStation?.siteAreaID,
+ companyID: extraParams.chargingStation?.companyID,
+ chargeBoxID: extraParams.chargingStation?.id,
source: (extraParams.chargingStation ? extraParams.chargingStation.id : null),
module: MODULE_NAME, method: 'saveNotification',
action: sourceDescr,

MODIFY
src/types/Log.ts
src/types/Log.ts
@@ -6,7 +6,10 @@ export interface Log {
tenantID: string;
id?: string;
level?: LogLevel;
+ chargeBoxID?: string;
+ siteAreaID?: string;
siteID?: string;
+ companyID?: string;
source?: string;
host?: string;
process?: string;

Changed most of logDebug messages to include additional ids.