vlaaad / reveal

Read Eval Visualize Loop for Clojure

Home Page:https://vlaaad.github.io/reveal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#question How do I send error logs of a running server to reveal?

tlonist-sang opened this issue · comments

Hi, thanks for the great work.
I'm running a ring server with reitit(router), and I want to send the error logs to reveal.

If I type directly into my local repl, reveal works great- it pretty prints the messages and does all sorts of stuffs for me. But it doesn't display any errors coming from the server - such as reitit coercion errors and SQL errors .. etc.

FYI, I'm running on local REPL with clojure.main, running with deps with parameters instructed in the introduction.
Do I need to add some configurations sending server errors to reveal?

Does your server use some logging library? Those usually log to stdout/stderr, so it's hard for Reveal to get access to those. You can try adding a listener for your logging framework that will tap> the incoming logs, this way Reveal will display them. See e07 for an example.

late reply. works great, thanks!