Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch all channels at once (self-hosted) #4

Closed
elvendor opened this issue Apr 8, 2021 · 4 comments
Closed

Watch all channels at once (self-hosted) #4

elvendor opened this issue Apr 8, 2021 · 4 comments

Comments

@elvendor
Copy link

elvendor commented Apr 8, 2021

First of all thank you for this great package!
As far as I understand this package supports multitenancy already.
But can we see logs from all channels at once?

@elvendor elvendor changed the title Wathc all channels at once (self-hosted) Watch all channels at once (self-hosted) Apr 8, 2021
@kurdin
Copy link
Owner

kurdin commented Apr 8, 2021

@elvendor yes, it supports multi channels, you can output logs to any channels you want and see them separated by channel's name, but you can not see all channels at once in one place.

What is your use case? why not to connect all your clients to a single all-in-one-channel and see logs in one place like https://your-console.domain.com/all-on-one-channel

@elvendor
Copy link
Author

elvendor commented Apr 9, 2021

Thanks for the reply.
I have the same app running on a different client domains. I did like like you say but I don't see any sepration by domains in logs.
https://www.papertrail.com does that but only for server.

@kurdin
Copy link
Owner

kurdin commented Apr 10, 2021

@elvendor you need to use connect method and provide different channel names for all your clients separate domains.

You can try to use window.location.hostname for channel name to separate by domain hostname where your script is running.

import consolere from 'console-remote-client'

consolere.connect({
  server: 'https://your-console-server',
  channel: window.location.hostname,
})

@elvendor
Copy link
Author

Thank you @kurdin !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants