# Log Entry by manually

**URL:** <https://forum.inductiveautomation.com/t/log-entry-by-manually/59489>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [May 12, 2022, 7:08am UTC](https://forum.inductiveautomation.com/t/log-entry-by-manually/59489 "2022-05-12T07:08:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [May 12, 2022, 7:08am UTC](https://forum.inductiveautomation.com/t/log-entry-by-manually/59489/1 "2022-05-12T07:08:52Z")

</div>

Hi ,  
Is there any way to write query to add data to logs in ignition gateway page?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/986ef9784e25cf636ac13ea32d1d73f85561baa8.png)  
c

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 12, 2022, 7:19am UTC](https://forum.inductiveautomation.com/t/log-entry-by-manually/59489/2 "2022-05-12T07:19:43Z")

</div>

Why ? What are you trying to log ?

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [May 12, 2022, 7:22am UTC](https://forum.inductiveautomation.com/t/log-entry-by-manually/59489/3 "2022-05-12T07:22:12Z")

</div>

I am trying log some information from external source.

like this  
`params = {'app':'Docker','app_host':'uki-001','act_perform':'pipeline1','act_target':'db003','act_value':'true'}`

i am using API to do that but i am getting 500 error

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 12, 2022, 7:25am UTC](https://forum.inductiveautomation.com/t/log-entry-by-manually/59489/4 "2022-05-12T07:25:22Z")

</div>

Any reason you can’t use a logger in a script ?

```python
logger = system.util.getLogger('dataFromSomeSource')
logger.info("your data")

```

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [May 12, 2022, 7:27am UTC](https://forum.inductiveautomation.com/t/log-entry-by-manually/59489/5 "2022-05-12T07:27:07Z")

</div>

I will check and let u know the reason

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [May 12, 2022, 7:29am UTC](https://forum.inductiveautomation.com/t/log-entry-by-manually/59489/6 "2022-05-12T07:29:30Z")

</div>

Is that query i return is wrong?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 12, 2022, 7:50am UTC](https://forum.inductiveautomation.com/t/log-entry-by-manually/59489/7 "2022-05-12T07:50:32Z")

</div>

Considering that logs are stored in plain text files, I don’t think there is a right query.

Also note that logs are not there to store data.
