UNPKG

@showbridge/lib

Version:

Main library for showbridge protocol router

11 lines (10 loc) 316 B
import { logger } from '../utils/index.js'; import Action from './action.js'; class LogAction extends Action { _run(_msg, vars) { const msg = this.getTransformedMessage(_msg, vars); logger.info(`log: ${msg.messageType} - ${msg}`); this.emit('finished'); } } export default LogAction;