Page 1 of 1

Different log levels for library updating and media serving

PostPosted: Mon Feb 14, 2011 9:24 am
by mback2k
It would be great if we could specify different log levels for library updating and media serving.

It's a little hard to watch for serving problems if the whole log is spammed by the library updating thread.

Thanks in advance!

Re: Different log levels for library updating and media serv

PostPosted: Mon Feb 14, 2011 11:10 am
by zip
Edit log4j.xml to include this:

  Code:
<!-- by default DEBUG everything -->
<category name="org.serviio">
      <priority value="DEBUG"/>
</category>

<!-- use INFO for library stuff  -->
<category name="org.serviio.library">
      <priority value="INFO"/>
</category>

Re: Different log levels for library updating and media serv

PostPosted: Tue Feb 15, 2011 5:28 pm
by mback2k
Thanks a lot.

Re: Different log levels for library updating and media serv

PostPosted: Wed Oct 05, 2011 5:43 pm
by jhb50
With the addition of Online sources, the Debug Output includes both PC and On-line library messages which makes it difficult to analyse one or the other.

Could we have one option to turn on/off the PC library messages and another to turn off/on the online library messages?

Re: Different log levels for library updating and media serv

PostPosted: Sun Oct 09, 2011 3:39 pm
by zip
For local library logs use this category:

  Code:
<category name="org.serviio.library.local">
      <priority value="DEBUG"/>
</category>

and for online this:

  Code:
<category name="org.serviio.library.online">
      <priority value="DEBUG"/>
</category>

Re: Different log levels for library updating and media serv

PostPosted: Mon Dec 19, 2011 3:51 pm
by ny_dave
Could we get a settings tab on the console, that one could check for what logging that we are looking for.

Re: Different log levels for library updating and media serv

PostPosted: Mon May 07, 2012 8:43 pm
by Sander
zip wrote:Edit log4j.xml to include this:

  Code:
<!-- by default DEBUG everything -->
<category name="org.serviio">
      <priority value="DEBUG"/>
</category>

<!-- use INFO for library stuff  -->
<category name="org.serviio.library">
      <priority value="INFO"/>
</category>
I put this in and now there are no more .log files.
Actually, there is a derby.log file

Re: Different log levels for library updating and media serv

PostPosted: Tue May 08, 2012 7:04 am
by will
Sander wrote:
zip wrote:Edit log4j.xml to include this:

  Code:
<!-- by default DEBUG everything -->
<category name="org.serviio">
      <priority value="DEBUG"/>
</category>

<!-- use INFO for library stuff  -->
<category name="org.serviio.library">
      <priority value="INFO"/>
</category>
I put this in and now there are no more .log files.
Actually, there is a derby.log file


Try
  Code:
<!-- by default DEBUG everything -->
<category name="org.serviio">
      <priority value="DEBUG"/>
</category>

<!-- use INFO for library stuff  -->
<category name="org.serviio.library.local">
      <priority value="INFO"/>
</category>
<category name="org.serviio.library.online">
      <priority value="INFO"/>
</category>

Re: Different log levels for library updating and media serv

PostPosted: Thu Aug 29, 2013 1:12 am
by DenyAll
Updated information in the wiki to include filtering on the library.dao components: see http://wiki.serviio.org/doku.php?id=debug_filter

Re: Different log levels for library updating and media serv

PostPosted: Wed Nov 27, 2013 4:59 pm
by n3mmr
will wrote:
Sander wrote:
zip wrote:Edit log4j.xml to include this:

  Code:
<!-- by default DEBUG everything -->
<category name="org.serviio">
      <priority value="DEBUG"/>
</category>

<!-- use INFO for library stuff  -->
<category name="org.serviio.library">
      <priority value="INFO"/>
</category>
I put this in and now there are no more .log files.
Actually, there is a derby.log file


Try
  Code:
<!-- by default DEBUG everything -->
<category name="org.serviio">
      <priority value="DEBUG"/>
</category>

<!-- use INFO for library stuff  -->
<category name="org.serviio.library.local">
      <priority value="INFO"/>
</category>
<category name="org.serviio.library.online">
      <priority value="INFO"/>
</category>



Would this work the other way around??

I e INFO for org.serviio and DEBUG for org.serviio.library.online?

Re: Different log levels for library updating and media serv

PostPosted: Wed Nov 27, 2013 5:00 pm
by zip
I think so, give it a try.

Re: Different log levels for library updating and media serv

PostPosted: Tue Jan 05, 2016 6:08 pm
by mmarauder
Is there a setting to then take this and save the logs to different log files? So I could have a separate log file for just library additions?