mirror of https://github.com/rails/rails
Added docs for client-side logger
This commit is contained in:
parent
cf71309684
commit
c25b77fb6b
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue