Replies: 4 comments
-
What is your Livebook version? We do show logs, except in attached mode (which may be too verbose). |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's LiveBook 0.7.1. It's possible that I'm not understanding how to
view the logs. I am new at Elixir and LiveBook.
I've attached my LiveBook if that helps.
On October 15, 2022, Elle Imhoff ***@***.***> wrote:
What is your Livebook version? We do show logs, except in attached
mode (which may be too verbose).
—
Reply to this email directly, view it on GitHub
<https://github.com/livebook-
dev/livebook/discussions/1490#discussioncomment-3886521>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AABTCBWWOZ6HXIIUZN3SEKLWDL2VJANCNFSM6AAAAAARGAIS5Q>.
You are receiving this because you authored the thread.Message ID:
<livebook-dev/livebook/repo-
***@***.***>
# Tortoise
```elixir
Mix.install([
{:tortoise, "~> 0.10.0"}
])
```
## Preamble
```elixir
require Logger
```
## Start the supervisor and send a message
```elixir
Tortoise.Supervisor.start_child(
client_id: "heart-of-gold",
handler: {Tortoise.Handler.Logger, []},
server: {Tortoise.Transport.Tcp, host: 'localhost', port: 1883}
)
```
```elixir
Tortoise.publish("heart-of-gold", "foo/bar", "Hello from the World of Tomorrow !", qos: 0)
```
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah, I would expect that to work. Does a |
Beta Was this translation helpful? Give feedback.
0 replies
-
Jose
Sorry for not replying sooner. I have been AFK due to family illness.
The Logger.debug statement works as expected.
However I think I haven't explained myself very well. I'd like to get a
live update of the Logger contents because I want to send mqtt messages
from outside the Livebook and have the Logging statements generated by
the messages handled by the Tortoise supervisor displayed inside the
LiveBook. I want to do this because I'm using LiveBook to explore a
prototype implementation of an intent handler for Rhasspy
<https://rhasspy.readthedocs.io/en/latest/intent-handling/>.
On October 16, 2022, Elle Imhoff ***@***.***> wrote:
Yeah, I would expect that to work. Does a Logger.debug("hello") work?
If so, maybe Tortoise is not doing any logging?
—
Reply to this email directly, view it on GitHub
<https://github.com/livebook-
dev/livebook/discussions/1490#discussioncomment-3890649>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AABTCBSTRASYP75TFLCEMY3WDRBPVANCNFSM6AAAAAARGAIS5Q>.
You are receiving this because you authored the thread.Message ID:
<livebook-dev/livebook/repo-
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to view the output from Logger in a LiveBook? I am trying to explore the Tortoise API using a Livebook and have created a handler to log any messages:
I then send a message:
Somehow I'd like to see the updated Logger output in the LiveBook.
TIA
Beta Was this translation helpful? Give feedback.
All reactions