# \[SOLVED\] Logging client scoped events to gateway

**URL:** <https://forum.inductiveautomation.com/t/solved-logging-client-scoped-events-to-gateway/37330>\
**Category:** Ignition\
**Created:** [August 3, 2020, 6:34pm UTC](https://forum.inductiveautomation.com/t/solved-logging-client-scoped-events-to-gateway/37330 "2020-08-03T18:34:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 4, 2020, 12:53pm UTC](https://forum.inductiveautomation.com/t/solved-logging-client-scoped-events-to-gateway/37330/4 "2020-08-04T12:53:19Z")

</div>

> [@witman](#):
>
> logger = system.util.getLogger(payload['loggerName']) if payload['level'] == 'fatal': logger.fatal(payload['message'])

Psst! Try this:

```auto
	logger = system.util.getLogger(payload['loggerName'])
	m = getattr(logger, payload['level'])
	m(payload['message'])

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/solved-logging-client-scoped-events-to-gateway/37330)._
