# How to read GatewayHook log data

**URL:** <https://forum.inductiveautomation.com/t/how-to-read-gatewayhook-log-data/94957>\
**Category:** Module Development\
**Created:** [August 21, 2024, 4:35pm UTC](https://forum.inductiveautomation.com/t/how-to-read-gatewayhook-log-data/94957 "2024-08-21T16:35:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehrdad\_Telli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mehrdad_telli/32/77763_2.png) [@Mehrdad\_Telli](https://forum.inductiveautomation.com/u/Mehrdad_Telli)\
**Post date:** [August 21, 2024, 4:35pm UTC](https://forum.inductiveautomation.com/t/how-to-read-gatewayhook-log-data/94957/1 "2024-08-21T16:35:39Z")

</div>

how to read log data from GatewayHook into consol?

```python
ic class MyGatewayHook extends AbstractGatewayModuleHook {
    private static final LoggerEx log = LoggerEx.newBuilder().build("MyLog");

    private ComponentRegistry componentRegistry;

    private GatewayContext gatewayContext;
    @Override
    public void setup(GatewayContext context) {
        this.gatewayContext = context;
        log.info("------------1234-------------");

    }

    @Override
    public void startup(LicenseState activationState) {
        log.info("------------5678-------------");
.
.
.
.

```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 21, 2024, 4:39pm UTC](https://forum.inductiveautomation.com/t/how-to-read-gatewayhook-log-data/94957/2 "2024-08-21T16:39:18Z")

</div>

This is Gateway hook, so these log messages would appear in the Gateway logs and in the wrapper.log files.

---

<div class="post-metadata">

**Author:** ![Mehrdad\_Telli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mehrdad_telli/32/77763_2.png) [@Mehrdad\_Telli](https://forum.inductiveautomation.com/u/Mehrdad_Telli)\
**Post date:** [August 21, 2024, 4:45pm UTC](https://forum.inductiveautomation.com/t/how-to-read-gatewayhook-log-data/94957/3 "2024-08-21T16:45:40Z")

</div>

Thanks for reply,  
Is there a way to read this report from the designer or browser console for debugging ?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 21, 2024, 5:00pm UTC](https://forum.inductiveautomation.com/t/how-to-read-gatewayhook-log-data/94957/4 "2024-08-21T17:00:44Z")

</div>

No, not without setting up the scaffolding to deliver the events yourself.
