yolo007wizard

yolo007wizard

Livebook runtime logs?

Does Livebook have a way to create a runtime log file? I’m thinking of a flow where a job evaluates a livebook file in ‘background’ mode with no eyes on it. Lets say a specific livebook runtime encounters some errors and now I would like to see them.

Thinking out loud; I suppose the wrapper job could fetch the livebook code, evaluate, then send any errors to a normal log file. It would be really nice though to see all the errors in line with code cells in the livebook markdown. A livebook log file of some sort would be really cool. Open it like any other livebook file and it displays all the rendered output of a previous runtime.

This is in line with this idea but not sure what came of it.

Most Liked

yolo007wizard

yolo007wizard

Makes sense, these would be great feature additions then!

  • background livebook runner i.e. run a livebook like a script
  • save all rendered output / code evaluation / error logs etc to a cloned livemd file called ‘{livebook name}-log-{timestamp}.livemd’
  • the new livemd file can be loaded into livebook app at later time to view how that runtime went

Livebook to me feels like a higher functioning iex session; perfect blend of gui + code. Imo this would take it to next level!

josevalim

josevalim

Creator of Elixir

Oh, I understand it better now.

The issue in implementing what you have in mind right now is that there is no official way for executing a notebook programatically. We want to add APIs for deployed notebooks though. Then you could pass a log file as parameter to the notebook itself :slight_smile:

josevalim

josevalim

Creator of Elixir

The Livebook application is separate from the runtime your notebook runs on. Therefore, if you want to log anywhere, you can configure the Logger in your notebook to log wherever you want.

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44608 311
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New

We're in Beta

About us Mission Statement