Welcome! Please see the About page for a little more info on how this works.

+4 votes
in Ions by
edited by

Hello, I'm trying to understand how to make the calls to cast/* work outside of Datomic Cloud while I'm doing my local development.

Different things I tried

This screenshot illustrates that println, tap> and regular log/* are printed, but not the cast/* calls.

What could make it so that cast calls seem to have no effect?

I have tried them with (cast/initialize-redirect ...) towards all of :tap, :stdout, and :stderr without success.

Thanks for any help!

1 Answer

0 votes

You can redirect to a file

(cast/initialize-redirect cast-file)

or to stdout

(cast/initialize-redirect :stdout)

See https://docs.datomic.com/cloud/ions/ions-monitoring.html#local-workflow

Thanks but as written in the question (I edited it to make it more obvious), I tried precisely this and it didn't help.
We have been using it for some time.  The only thing I can think of is you have to initialize it before using any of the cast calls.
I already run into this issue, exactly as  @djomphe-elyada reported

I solved that deleting every cache, m2, cpcache, etc in my machine.

I'm not happy with that solution and would like a support to debug this problem.

Or at least release the sources, then we can debug it.
I'm having the same issue. I'm using Atom with Proto REPL connecting to an nREPL started on a terminal window with

:main-opts ["-m" "nrepl.cmdline -middleware [\"refactor-nrepl.middleware/wrap-refactor\", \"cider.nrepl/cider-middleware\"]"]

Exceptions stack traces, logging libs and println work as expected.