# Want to log a string message in gateway diagnostic log from client event Script

**URL:** <https://forum.inductiveautomation.com/t/want-to-log-a-string-message-in-gateway-diagnostic-log-from-client-event-script/53081>\
**Category:** Ignition\
**Created:** [November 15, 2021, 3:26pm UTC](https://forum.inductiveautomation.com/t/want-to-log-a-string-message-in-gateway-diagnostic-log-from-client-event-script/53081 "2021-11-15T15:26:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![nicoli.liedtke](https://avatars.discourse-cdn.com/v4/letter/n/ee59a6/32.png) [@nicoli.liedtke](https://forum.inductiveautomation.com/u/nicoli.liedtke)\
**Post date:** [November 15, 2021, 4:08pm UTC](https://forum.inductiveautomation.com/t/want-to-log-a-string-message-in-gateway-diagnostic-log-from-client-event-script/53081/5 "2021-11-15T16:08:28Z")

</div>

The reason the code you have is not working is that the Gateway Diagnostic Log only show log entries that occur in the Gateway scope and not from the Client Scope. You can use messaging to send logging information back to the gateway scope for logging following the solution in this forum post. [[SOLVED] Logging client scoped events to gateway](https://forum.inductiveautomation.com/t/solved-logging-client-scoped-events-to-gateway/37330)

---

_[View the full topic](https://forum.inductiveautomation.com/t/want-to-log-a-string-message-in-gateway-diagnostic-log-from-client-event-script/53081)._
