mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Added docs for client-side logger
This commit is contained in:
parent
cf71309684
commit
c25b77fb6b
2 changed files with 13 additions and 0 deletions
|
@ -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 a new issue