# Logging from an Ion

**URL:** <https://forum.datomic.com/t/logging-from-an-ion/954>\
**Category:** Datomic Cloud\
**Created:** [April 26, 2019, 12:35pm UTC](https://forum.datomic.com/t/logging-from-an-ion/954 "2019-04-26T12:35:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dean](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/dean/32/291_2.png) [@Dean](https://forum.datomic.com/u/Dean)\
**Post date:** [April 26, 2019, 12:35pm UTC](https://forum.datomic.com/t/logging-from-an-ion/954/1 "2019-04-26T12:35:09Z")

</div>

Hi,

I was under the impression that using the cast namespace would allow me to log to cloudwatch logs, but l think I may have misunderstood, and this is meant to be redirected for dev workflow. How do I get fine-grained logs into cloudwatch logs (stdout appears to be redirected too). My aim is to get the logs into Datadog, I think CW logs is the most reliable route.

Any pointers appreciated.

Cheers

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [April 30, 2019, 3:22pm UTC](https://forum.datomic.com/t/logging-from-an-ion/954/2 "2019-04-30T15:22:32Z")

</div>

`cast` functionality does indeed allow you to log to CloudWatch.

In particular, Events, Alerts, and Metrics that are cast from an Ion ([https://docs.datomic.com/cloud/ions/ions-monitoring.html#overview](https://docs.datomic.com/cloud/ions/ions-monitoring.html#overview)) will log to your [Datomic system’s CloudFormation logs](https://docs.datomic.com/cloud/operation/monitoring.html#searching-cloudwatch-logs).

`cast/dev` can be [redirected](https://docs.datomic.com/cloud/ions/ions-monitoring.html#local-workflow) to stdout or stderr when working locally, but will not be logged at all once deployed to a Datomic system as an Ion.

---

<div class="post-metadata">

**Author:** ![Dean](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/dean/32/291_2.png) [@Dean](https://forum.datomic.com/u/Dean)\
**Post date:** [April 30, 2019, 9:27pm UTC](https://forum.datomic.com/t/logging-from-an-ion/954/3 "2019-04-30T21:27:25Z")

</div>

Thanks Marshall, so if I want to see the normal application flow, I should log events for each stage of a request?

Cheers,  
Dean

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [May 5, 2019, 8:02pm UTC](https://forum.datomic.com/t/logging-from-an-ion/954/4 "2019-05-05T20:02:07Z")

</div>

Dean,

Generally, yes you can use `ion/cast` in place of whatever you would normally use for application logging.

-Marshall
