Sha256: 6985703901aab77e7d5bdfc5cc2a963681dee627944cde8114c4784656f2931f

Contents?: true

Size: 478 Bytes

Versions: 30

Compression:

Stored size: 478 Bytes

Contents

import adapters from "./adapters"

// The logger is disabled by default. You can enable it with:
//
//   ActionCable.logger.enabled = true
//
//   Example:
//
//   import * as ActionCable from '@rails/actioncable'
//
//   ActionCable.logger.enabled = true
//   ActionCable.logger.log('Connection Established.')
//

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

Version data entries

30 entries across 29 versions & 3 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.12 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.11 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.10 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.9 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.8 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js
clapton-0.0.7 lib/clapton/javascripts/node_modules/@rails/actioncable/src/logger.js