Fork me on GitHub
#portal
<
2023-09-21
>
emilaasa12:09:57

Can I get portal to display all my repl output - instead of only taps?

practicalli-johnny13:09:23

I'm using portal for https://practical.li/clojure-web-services/service-repl-workflow/mulog-events/ as well as https://practical.li/clojure-web-services/service-repl-workflow/portal/ using the Portal nrepl middleware (without ever writing a tap> function call). :repl/reloaded alias in Practicalli Clojure CLI Config will start Portal and mulog custom publisher on REPL startup, via a custom user namespace What else would be useful to capture?

emilaasa15:09:54

Ah I think that’s what I’m not understanding - it’s an nrepl middleware in your config?

emilaasa15:09:05

That seems like exactly what I’m after

seancorfield15:09:35

My dot-clojure repo can be used as a library to start a REPL that works well with Portal. In particular, it adds middleware if it is on your classpath https://github.com/seancorfield/dot-clojure/blob/develop/src/org/corfield/dev/repl.clj#L127 It also wires clojure.tools.logging into Portal.

emilaasa15:09:30

Thanks @U04V70XH6 and @U05254DQM - great setups!