jberling

jberling

Structured logging on localhost

One thing I miss from developing native apps with Swift is the structured logging in the Console app.

I loathe scanning text logs and find Elixir’s output hard to scan. It’s often just a wall of text. Like in this screenshot:

Is there a solution for sending the logs to either the Console app or a custom-made UI? A solution where maps are rendered as nicely as with GitHub - software-mansion/live-debugger: Tool for debugging LiveView applications · GitHub maybe?

Most Liked

hauleth

hauleth

https://github.com/hauleth/lumberjack/commit/aac3b76923adc888066145730eff1faa3c3da1ec

Fixed that issue. I will try to revive it a little bit and remove dependencies on stuff like Cowboy, but that particular issue is fixed now.

jberling

jberling

Yeah, I’ve seen Logger supports structured logging.

I can live with that. If at least my own loggins are structured I am happy.

Ok, if no solution is there, maybe I should build it myself …

D4no0

D4no0

A solution for this would be great. I’ve had problems countless times with such long error messages, sometimes it would get so bad, that I would have to copy paste into a text editor and split it on my own to make any sense of it.

Where Next?

Popular in Questions Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
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
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
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
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
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
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

We're in Beta

About us Mission Statement