UNPKG
@showbridge/lib
Version:
latest (0.17.1)
0.17.1
0.17.0
0.16.3
0.16.2
0.16.1
0.16.0
0.15.3
0.15.2
0.15.1
0.15.0
0.14.0
0.13.0
0.12.1
0.12.0
0.11.0
0.10.0
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.1
0.7.0
0.6.0
0.5.1
0.5.0
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
Main library for showbridge protocol router
github.com/jwetzell/showbridge
jwetzell/showbridge
@showbridge/lib
/
dist
/
lib
/
actions
/
log-action.js
11 lines
(10 loc)
•
316 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
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
;