# Logger

**URL:** <https://forum.juce.com/t/logger/11826>\
**Category:** Audio Plugins\
**Created:** [November 9, 2013, 1:51pm UTC](https://forum.juce.com/t/logger/11826 "2013-11-09T13:51:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [November 9, 2013, 1:51pm UTC](https://forum.juce.com/t/logger/11826/1 "2013-11-09T13:51:20Z")

</div>

Is FileLogger suitable for use in a plugin? &nbsp;I can't quite get my head around the problem. &nbsp;It uses a static variable to hold the current logger. As there might be multiple instances of a plugin loaded, is there a safe way to initialise and eventually remove&nbsp;it at all?

I've just removed all the singleton stuff from my project :)

Thoughts?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 9, 2013, 2:40pm UTC](https://forum.juce.com/t/logger/11826/2 "2013-11-09T14:40:39Z")

</div>

It's thread-safe so should be fine, I reckon. Don't go calling it on the audio thread though!
