aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/app/javascript/action_cable/logger.js
blob: ef4661ead1cd3decf02a2fa9c2854912f1d7e87c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import adapters from "./adapters"

export default {
  log(...messages) {
    if (this.enabled) {
      messages.push(Date.now())
      adapters.logger.log("[ActionCable]", ...messages)
    }
  },
}