Similar symptom here. I’ve been trying datomic using both production topology and locally using a REPL. When deployed in the cloud, I cannot find the log anywhere in the CloudWatch Log Stream. When run locally, cast/event shows the following error
=> (require '[datomic.ion.cast :as cast])
nil
=> (cast/event {:msg "A" ::event ::foobar})
Execution error (IllegalArgumentException) at datomic.ion.cast.impl/fn$G (impl.clj:14).
No implementation of method: :-event of protocol: #'datomic.ion.cast.impl/Cast found for class: nil
Modern application often use a lifecycle and dependencies management tool such as component and duct. If cast depends on a shared global variable, maybe we should let user manage it?
You need to initialize-redirect for local workflows. Your REPL is a local workflow. You can then prn all alert,event and dev output to stderr, stdout, for a filename. With clojure 1.10 you can also target a registered tap.
Werner and I worked together on a support case and we found that he was using cast/dev which does not post to CloudWatch. Our docs were not clear on this so we added a note to the cast/dev section here: Monitoring Ions | Datomic
NOTE Configuring a destination for cast/dev when running in Datomic Cloud is currently not supported, and dev calls do not post to CloudWatch.