"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PreviewAppLogProvider = void 0;
const events_1 = require("events");
const constants_1 = require("../../../common/constants");
const yok_1 = require("../../../common/yok");
class PreviewAppLogProvider extends events_1.EventEmitter {
    logData(log, deviceName, deviceId) {
        const message = `LOG from device ${deviceName}: ${log}`;
        this.emit(constants_1.DEVICE_LOG_EVENT_NAME, deviceId, message);
    }
}
exports.PreviewAppLogProvider = PreviewAppLogProvider;
yok_1.injector.register("previewAppLogProvider", PreviewAppLogProvider);
