# Log Scoping Inconsistencies?

**URL:** <https://forum.inductiveautomation.com/t/log-scoping-inconsistencies/40365>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [November 5, 2020, 7:37pm UTC](https://forum.inductiveautomation.com/t/log-scoping-inconsistencies/40365 "2020-11-05T19:37:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke.Brockley](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@Luke.Brockley](https://forum.inductiveautomation.com/u/Luke.Brockley)\
**Post date:** [November 5, 2020, 7:37pm UTC](https://forum.inductiveautomation.com/t/log-scoping-inconsistencies/40365/1 "2020-11-05T19:37:42Z")

</div>

Hello.

I’m having a strange error with logs that should be the same level outputting to different scopes. I have a large scripting file that has class definitions as well as some static auxiliary functions outside the classes. An SFC instantiates the objects and also mutates them using the aux functions.

I use a reference to a logger from the system.util method all throughout the file, however; the logger outputs to a different location depending on where it’s placed. Methods in the class definitions log to the gateway-\>diagnostics-\> logs page, but those auxiliary functions log to the wrapper.log file. What am I missing? They all belong to the same file, using the same loggerEx object, all only being accessed by an SFC (which should have gateway scope?).
