Page 1 of 1

to see what jobs serviio is doing

PostPosted: Wed Apr 10, 2013 7:15 pm
by chrismallia
can there be a way to know what jobs serviio is doing like transcoding to witch devices and to what devices it is streaming to and what it is streaming

Re: to see what jobs serviio is doing

PostPosted: Thu Apr 11, 2013 7:45 am
by Illico
With serviio log file.


You can edit the ./config/log4j.xml file like this:

<category name="org.serviio.delivery.resource.VideoDeliveryEngine">
<priority value="DEBUG"/>
</category>

To only see the VideoDelivery messages

Re: to see what jobs serviio is doing

PostPosted: Thu Apr 11, 2013 8:25 am
by chrismallia
Illico wrote:With serviio log file.


You can edit the ./config/log4j.xml file like this:

<category name="org.serviio.delivery.resource.VideoDeliveryEngine">
<priority value="DEBUG"/>
</category>

To only see the VideoDelivery messages

Hi I did it this way and also the other way but mouthing happens am i doing somthing wrong where should i see the info when streeming?

way 1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- ===================================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ===================================================================== -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="DEBUG"/>
<param name="Append" value="true" />
<param name="File" value="${serviio.home}/log/serviio.log" />
<param name="MaxFileSize" value="500KB" />
<param name="MaxBackupIndex" value="5" />
<param name="Encoding" value="UTF-8" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] %m%n"/>
</layout>
</appender>

<category name="org.serviio.delivery.resource.VideoDeliveryEngine">
<priority value="DEBUG"/>
</category>

<category name="com.sun.syndication">
<priority value="ERROR"/>
</category>

<category name="org.jaudiotagger">
<priority value="ERROR"/>
</category>

<category name="org.restlet">
<priority value="ERROR"/>
</category>

<category name="org.apache.jcs">
<priority value="WARN"/>
</category>

<root>
<priority value="INFO"/>
<appender-ref ref="FILE"/>
</root>

</log4j:configuration>

way 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- ===================================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ===================================================================== -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="DEBUG"/>
<param name="Append" value="true" />
<param name="File" value="${serviio.home}/log/serviio.log" />
<param name="MaxFileSize" value="500KB" />
<param name="MaxBackupIndex" value="5" />
<param name="Encoding" value="UTF-8" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] %m%n"/>
</layout>
</appender>

<category name="org.serviio">
<priority value="INFO"/>
</category>

<category name="com.sun.syndication">
<priority value="ERROR"/>
</category>

<category name="org.jaudiotagger">
<priority value="ERROR"/>
</category>

<category name="org.restlet">
<priority value="ERROR"/>
</category>

<category name="org.apache.jcs">
<priority value="WARN"/>
</category>

<root>
<priority value="INFO"/>
<appender-ref ref="FILE"/>
</root>

<category name="org.serviio.delivery.resource.VideoDeliveryEngine">
<priority value="DEBUG"/>
</category>

</log4j:configuration>

Re: to see what jobs serviio is doing

PostPosted: Thu Apr 11, 2013 1:34 pm
by chrismallia
Where eill i see the delivery jobs after editing the file thanks?

Re: to see what jobs serviio is doing

PostPosted: Thu Apr 11, 2013 1:49 pm
by Illico
With latest Servio 1.2, edit like this :

  Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  Log4j Configuration                                                  -->
<!--                                                                       -->
<!-- ===================================================================== -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

    <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
       <param name="Threshold" value="DEBUG"/>
       <param name="Append" value="true" />
      <param name="File" value="${serviio.home}/log/serviio.log" />
      <param name="MaxFileSize" value="500KB" />
      <param name="MaxBackupIndex" value="5" />   
      <param name="Encoding" value="UTF-8" />   
      <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] %m%n"/>
      </layout>
   </appender>
   
   <category name="org.serviio.delivery.resource.VideoDeliveryEngine">
      <priority value="DEBUG"/>
   </category>
     
   <category name="com.sun.syndication">
      <priority value="ERROR"/>
   </category>
   
   <category name="org.jaudiotagger">
      <priority value="ERROR"/>
   </category>
   
   <category name="org.restlet">
      <priority value="ERROR"/>
   </category>
   
   <category name="org.apache.jcs">
      <priority value="WARN"/>
   </category>
   
   <root>
      <priority value="INFO"/>
      <appender-ref ref="FILE"/>
   </root>   
   
</log4j:configuration>


Restart serviio services or reboot, then on log file you will see only VideoDeliveryEngine messages

Re: to see what jobs serviio is doing

PostPosted: Thu Apr 11, 2013 3:02 pm
by chrismallia
Thanks it work but it would be much better if this info will show in the console

Re: to see what jobs serviio is doing

PostPosted: Thu Apr 11, 2013 3:38 pm
by Illico
chrismallia wrote:Thanks it work but it would be much better if this info will show in the console


OK,

For info on console, I'm not sure Zip would like to implement it...

Re: to see what jobs serviio is doing

PostPosted: Thu Apr 11, 2013 8:05 pm
by chrismallia
Illico wrote:
chrismallia wrote:Thanks it work but it would be much better if this info will show in the console


OK,

For info on console, I'm not sure Zip would like to implement it...

Thanks for the great help you have always been and thank you for your kind patience . I can't see why zip wouldn't want to implement it in the console it is a good thing and I fined it as a need, but anyway on the other hand I am sure zip knows whats best thanks regards Chris