# Log.Debug

**URL:** <https://forums.plex.tv/t/log-debug/42621>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [September 12, 2013, 1:31pm UTC](https://forums.plex.tv/t/log-debug/42621 "2013-09-12T13:31:02Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 12, 2013, 1:31pm UTC](https://forums.plex.tv/t/log-debug/42621/1 "2013-09-12T13:31:02Z")

</div>

Okay......I'm trying to write a small plugin, and my code is scattered with lines like:

&nbsp;

Log.Debug("Yes....Now here") :rolleyes:

&nbsp;

But here's what puzzles me.

&nbsp;

I now switched off all logging, and even restarted the PMS, and yet the debug log entries still show in my plugin log file?

I would have expected Log.Info messages to be present, but not the others though

&nbsp;

&nbsp;

Running 0.9.8.6 here on QNAP

&nbsp;

And takers?

&nbsp;

/Tommy

---

<div class="post-metadata">

**Author:** ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)\
**Post date:** [September 12, 2013, 4:23pm UTC](https://forums.plex.tv/t/log-debug/42621/2 "2013-09-12T16:23:02Z")

</div>

What does your Info.plist file look like?

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 12, 2013, 7:17pm UTC](https://forums.plex.tv/t/log-debug/42621/3 "2013-09-12T19:17:28Z")

</div>

> What does your Info.plist file look like?

```
<?xml version="1.0" encoding="UTF-8"?>

	CFBundleIdentifier
	com.plexapp.plugins.findUnmatch
	PlexClientPlatforms
	*
	PlexFrameworkVersion
	2
	PlexPluginCodePolicy
	Elevated
```

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 12, 2013, 7:19pm UTC](https://forums.plex.tv/t/log-debug/42621/4 "2013-09-12T19:19:51Z")

</div>

And also com.plexapp.system.log contains debug info, so I think it's a bug in the framework, or?

/Tommy

---

<div class="post-metadata">

**Author:** ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)\
**Post date:** [September 12, 2013, 7:29pm UTC](https://forums.plex.tv/t/log-debug/42621/5 "2013-09-12T19:29:59Z")

</div>

> And also com.plexapp.system.log contains debug info, so I think it's a bug in the framework, or?
> 
> /Tommy

Seems possible. TBH, I rarely use &nbsp;Log.Debug. I'll see if I can reproduce it on my setup and then maybe we can pester Jam about it :)

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 12, 2013, 7:37pm UTC](https://forums.plex.tv/t/log-debug/42621/6 "2013-09-12T19:37:13Z")

</div>

> Seems possible. TBH, I rarely use &nbsp;Log.Debug. I'll see if I can reproduce it on my setup and then maybe we can pester Jam about it :)

Cool....standing by here, and huge thanks for the feedback so far

/Tommy

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 13, 2013, 8:33pm UTC](https://forums.plex.tv/t/log-debug/42621/7 "2013-09-13T20:33:34Z")

</div>

What exactly does a setting in the info.plist file named&nbsp;

```
PlexPluginDebug
	1
```

do ?

And is there somewhere a list about all valid settings for the info.plist?

And reason for asking is that setting was found in the framework bundle among others

/T

---

<div class="post-metadata">

**Author:** ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)\
**Post date:** [September 13, 2013, 9:03pm UTC](https://forums.plex.tv/t/log-debug/42621/8 "2013-09-13T21:03:42Z")

</div>

> What exactly does a setting in the info.plist file named
> 
> ```
> PlexPluginDebug
> 1
> ```
>   
> do ?  
>   
> And is there somewhere a list about all valid settings for the info.plist?  
>   
> And reason for asking is that setting was found in the framework bundle among others  
>   
> /T

  
Setting that to "1" rather than "0" turns on debug logging. AFAIK, there is not currently a comprehensive list of valid plist flags and their uses.

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 13, 2013, 9:29pm UTC](https://forums.plex.tv/t/log-debug/42621/9 "2013-09-13T21:29:09Z")

</div>

Kinda what I deducted as well, so here's a small Q:

If the top bundle from Plex has this set to 1, wouldn't all plugin's below it then run in debug mode?

Take a peek @ the Plex provided plugin's, like :

scanners

framework

webclient

webmanager

system

Me smell a glitch here, or?

/Tommy

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 13, 2013, 10:43pm UTC](https://forums.plex.tv/t/log-debug/42621/10 "2013-09-13T22:43:53Z")

</div>

And still no dice here.....

Switched all to 0, yet still it's logging debug info.

So it has to be hardcoded somewhere above the bundles....Read "The server App"

And speaking of it, did you manage to duplicate this?

/Tommy

---

<div class="post-metadata">

**Author:** ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)\
**Post date:** [September 14, 2013, 12:39am UTC](https://forums.plex.tv/t/log-debug/42621/11 "2013-09-14T00:39:20Z")

</div>

Not yet. Haven’t had much dev/play time this week ☹

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 14, 2013, 12:44am UTC](https://forums.plex.tv/t/log-debug/42621/12 "2013-09-14T00:44:43Z")

</div>

> Not yet. Haven't had much dev/play time this week :-(

Fair enough, and was simply asking, not pushing :wub:

What I suspect here, is that devs, due to their job, always are running in either debug or verbose mode, and as such, never detected this.

Speaking of verbose, could you also perhaps ask Jam to extend the option of Log.Verbose to be included?

/Tommy

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 14, 2013, 1:59am UTC](https://forums.plex.tv/t/log-debug/42621/13 "2013-09-14T01:59:18Z")

</div>

And to add.....

STD would be the following:

Switch PMS log level to lowest possible level, and then restart PMS.

Then look in the plugin log dir, @ the file named com.plexapp.system.log

It's full of debug logging

/T

---

<div class="post-metadata">

**Author:** ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)\
**Post date:** [September 14, 2013, 5:11pm UTC](https://forums.plex.tv/t/log-debug/42621/14 "2013-09-14T17:11:17Z")

</div>

Confirmed.

I'll bring it to the attention of the dev team. Thanks.

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [September 14, 2013, 10:57pm UTC](https://forums.plex.tv/t/log-debug/42621/15 "2013-09-14T22:57:06Z")

</div>

> Confirmed.
> 
> I'll bring it to the attention of the dev team. Thanks.

Cool, but also please tell them, that many of their plugin's are set to always do debug logging in their info.plist files

Best Regards

Tommy

---

<div class="post-metadata">

**Author:** ![jonnii](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jonnii/32/2594_2.png) [@jonnii](https://forums.plex.tv/u/jonnii)\
**Post date:** [December 31, 2013, 4:36am UTC](https://forums.plex.tv/t/log-debug/42621/16 "2013-12-31T04:36:53Z")

</div>

Came from [https://forums.plex.tv/topic/91782-pms-plugins-log-settings-in-preferencesxml-are-ignored/](https://forums.plex.tv/topic/91782-pms-plugins-log-settings-in-preferencesxml-are-ignored/)

..any updates? 3 months since you notified developers.

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [December 31, 2013, 10:36am UTC](https://forums.plex.tv/t/log-debug/42621/17 "2013-12-31T10:36:11Z")

</div>

> Came from [https://forums.plex.tv/topic/91782-pms-plugins-log-settings-in-preferencesxml-are-ignored/](https://forums.plex.tv/topic/91782-pms-plugins-log-settings-in-preferencesxml-are-ignored/)
> 
> ..any updates? 3 months since you notified developers.

Sadly no, but since everything in life is a matter of priority, then I'm sure it'll get fixed in due time

/T

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [February 1, 2014, 10:44pm UTC](https://forums.plex.tv/t/log-debug/42621/18 "2014-02-01T22:44:30Z")

</div>

Hi Mike.

Care to ping the devs here, and reason for asking is that this also has an impact on HDD sleeping, since if unneeded logging takes place, the hard drives will never sleep

Best Regards

Tommy

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 12:05am UTC](https://forums.plex.tv/t/log-debug/42621/19 "2019-12-21T00:05:06Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
