alisinabh
LiveDashboard Logger: See logs from across your cluster in Phoenix Live Dashboard
Hey everyone ![]()
I was recently working on a hobby project that I have deployed on a platform that did not provide quick and easy access to my application’s logs, especially across different nodes.
Since Elixir Logger is very extensible, I thought it should not be hard to build something with Phoenix LiveView, which adds a new backend for the logger and then propagates them to my live view process using Phoenix PubSub across a cluster.
Well, I was right! It was actually fairly easy to do so. In the process, I even discovered Phoenix LiveDashboard custom pages and implemented one as a custom page for LiveDashboard. (See image below)
It does the job for my need and I decided to package it out so if someone else needs this they can also use it. One cool thing that I like about it is that it does not require adding any custom plugs or changing your app’s supervision trees.
https://github.com/alisinabh/live_dashboard_logger
Please let me know your suggestions and feedback ![]()
Thanks!
Most Liked
BrightEyesDavid
Many thanks! I’ll use this for a project that the client will be hosting on their own server. Installation went fine, as expected.
My only thought is about adding a third option to remove the max-width of section#main.container, or to add some way of making the logs full-width, but that’s probably best as a general LiveDashboard thing? Anyway, I can, of course, use a custom user stylesheet in the browser.
alisinabh
Happy you found this useful ![]()
but that’s probably best as a general LiveDashboard thing?
Yes it mostly is. In the next live-dashboard release we will also get log colors based on levels which was updated in live-dashboard css.
jaimeiniesta
Popular in RFCs
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










