Added docs for client-side logger

This commit is contained in:
Kartikey Tanna 2020-05-03 11:52:06 +05:30
parent cf71309684
commit c25b77fb6b
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,10 @@
import adapters from "./adapters"
// The logger can be enabled with:
//
// ActionCable.logger.enabled = true
//
export default {
log(...messages) {
if (this.enabled) {

View File

@ -771,6 +771,14 @@ config.action_cable.log_tags = [
For a full list of all configuration options, see the
`ActionCable::Server::Configuration` class.
Client-side logs can be enabled with the following:
```ruby
import * as ActionCable from '@rails/actioncable'
ActionCable.logger.enabled = true
```
## Running Standalone Cable Servers
### In App