# Will manual logging work on Linux Ignition as well?

**URL:** <https://forum.inductiveautomation.com/t/will-manual-logging-work-on-linux-ignition-as-well/57107>\
**Category:** Ignition\
**Created:** [March 11, 2022, 2:23pm UTC](https://forum.inductiveautomation.com/t/will-manual-logging-work-on-linux-ignition-as-well/57107 "2022-03-11T14:23:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [March 11, 2022, 2:23pm UTC](https://forum.inductiveautomation.com/t/will-manual-logging-work-on-linux-ignition-as-well/57107/1 "2022-03-11T14:23:00Z")

</div>

hi All  
Sometimes i would like to use super simple custom manual logging:

def logging(msg):  
f = open(“C:\PROJECTS\IgnitionManualLoggings.txt”,“a”)  
now = system.date.now()  
m = “(” + str(now) + ") " + msg + “\n”  
f.write(m)  
f.close()

I just checked and the script creates a file if it does not exist.  
I wonder if this will work on linux as well with its different file system ?

---

<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:** [March 11, 2022, 3:55pm UTC](https://forum.inductiveautomation.com/t/will-manual-logging-work-on-linux-ignition-as-well/57107/2 "2022-03-11T15:55:17Z")

</div>

If you give it a valid filename for linux, and the ignition service has privileges in that folder, yes.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [March 11, 2022, 4:18pm UTC](https://forum.inductiveautomation.com/t/will-manual-logging-work-on-linux-ignition-as-well/57107/3 "2022-03-11T16:18:52Z")

</div>

thanks a lot Phil - do you know if there is a way to check Ignition installation folder in scripting? Having this path i could just add file name and as you said if permission are right -it should work 🙂

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [March 11, 2022, 4:49pm UTC](https://forum.inductiveautomation.com/t/will-manual-logging-work-on-linux-ignition-as-well/57107/4 "2022-03-11T16:49:19Z")

</div>

If you’ve installed Ignition as a service, you should be able to use a relative path to target the Ignition installation folder. For example, `open("foo.txt", "a")` in gateway scope would append to a file at `<Ignition Install Location>/foo.txt`.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [March 14, 2022, 3:40pm UTC](https://forum.inductiveautomation.com/t/will-manual-logging-work-on-linux-ignition-as-well/57107/5 "2022-03-14T15:40:50Z")

</div>

Hi Kevin  
Just wonder if i am not understanding something fundamental.  
When doing the simplest type of install (shown in the training on inductiveuniversity) is ignition installed as a service as well? to me this means it starts after operating system starts and does things in the background before somebody launches client and triggers other functionality or did you mean anything else?

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [March 14, 2022, 4:40pm UTC](https://forum.inductiveautomation.com/t/will-manual-logging-work-on-linux-ignition-as-well/57107/6 "2022-03-14T16:40:30Z")

</div>

Correct, typical install will have Ignition setup as a service… The gateway will start in the background, independent of any Client/Designer connections you would typically launch later.
