alisinabh

alisinabh

LiveDashboard Logger: See logs from across your cluster in Phoenix Live Dashboard

Hey everyone :wave:

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 :purple_heart:
Thanks!

Most Liked

BrightEyesDavid

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

alisinabh

Happy you found this useful :purple_heart:

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

jaimeiniesta

It works great!

A search filter would be a nice addition, too.

Where Next?

Popular in RFCs Top

type1fool
After discussing some of my ideas around Event Sourcing at last night’s Elixir Happy Hour in Austin (highly recommend), I spent some time...
New
wolf4earth
Every protocol you’ve shipped assumes the spec doesn’t change during the connection. This one doesn’t. Code is typed, composable, content...
New
bartblast
:test_tube: Could use a hand testing something. Just landed a protocol pruning enhancement - the compiler now drops protocol implementati...
New
laibulle
Hello, I am playing with quantitative finance with Elixir. This library is more a way for me to explore and learn in this area and especi...
New
c4710n
This package is a simple wrapper of beam-telemetry packages. It provides a modular approach for using beam-telemetry packages. The basi...
New
WyvernoDragon
I’ve been working on pgRx: a query engine that uses BEAM lightweight processes instead of PostgreSQL’s fork-per-connection model. The nu...
New
pzingg
https://github.com/pzingg/phx_cookie_consent I took a phx.gen.auth application and added support for storing a user’s cookie consent set...
New
zachallaun
Hey gang, I’ve been using Req as my primary client for a project I’ve been working on that interacts with a number of APIs, and I quickl...
New
tmbb
SciEx - Scientific programming Code here (very early stage): GitHub - tmbb/sci_ex: Scientific programming for Elixir · GitHub I have dec...
New
benlime
In the last couple of days I was playing around with LiveView, function components and animations. I ended up with a little prototype whi...
New

Other popular topics Top

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New

We're in Beta

About us Mission Statement