Results 1 to 4 of 4

Thread: Controlling logging messages being output.

  1. #1
    Join Date
    Jul 2015
    Posts
    2

    Default Controlling logging messages being output.

    We are getting a great volume of messages related to cupertino packet handling. Specifically log entries of the forms:

    wowzastreamingengine_access.log:2015-07-29 11:39:55 PDT comment server INFO 200 - LiveStreamPacketizerCupertino.handlePacket[live-origin/_definst_/dev1-sd-1
    and

    origin_access.log:[INFO] 07/29/2015 14:00:33 - Successfully started cupertino for model dev1 for stream dev1-sd-1

    These message types make up more than 50% of our log entries and do not contribute to our understanding of what is going. I would like to keep these out of the logs for the time being. In log4j, appenders can be set on a class basis to allow customizing the log output. I would like to do this for these messages, but I have not found anything in the documentation to help with log control at this level.

  2. #2

    Default

    Hi,

    Wowza Streaming Engine logging extends the standard Log4j logger so that it can log the extra fields that are required for normal media server logging. In doing so, the normal log4j functionality that allows you to set specific appenders on a class based context have been replaced with an application based context. This means that you can specify different logging levels per Wowza application but not per Java class as you can with a regular application using log4j. You can configure context logging on a per application basis to set some applications at a lower level while retaining a higher level for other applications.

    How to configure VHost and application context logging

    If you set a different level for a specific context then it will also set the level for that context in the top level log files.

    I would be very careful with lowering the logging levels as you lose a lot of useful information very quickly. Excessively large log files usually indicate some other underlying issue.

    The first message that you have listed is printed when a stream starts and tells us all about the audio & video codec information for the stream. This should only be printed when a source stream starts or restarts so shouldn't occur too frequently. If it is occurring frequently for the same streams then it may be indicating that there is some other underlying problem with the stream that is causing it to continuously reconnect and it should be investigated.

    The second message doesn't look like a normal Wowza Streaming Engine log message but looking at it, it appears to be telling us similar information to the one above.

    Roger.

  3. #3
    Join Date
    Jul 2015
    Posts
    2

    Default

    Thank you for your response. You are right; the second logging message is from our code.

    It is unfortunate that Wowza masks the log4j capability to log based on classname. That is a very useful capability and makes flexible logging for debug situations much more difficult. For our code it means that we have to go in and manually change log levels and even comment out logging code, because we cannot adjust class level logging though configuration. Our dev cycle can require a compile and deploy rather than editing log4j.properties (and maybe restarting the server). Removing a capability without replacing it with something more advanced is not what I would call progress.

    Our application starts and stops streams frequently and the cupertino packet handler messages tends to spam the log files. A mechanism to stop this kind of message would be useful.

  4. #4

    Default

    Hi,

    Thank you for your feedback. I shall add your request for the ability to log based on classname to our backlog queue, but I can't give any guarantees if or when this may be implemented.


    Regards,

    Paul

Similar Threads

  1. RTMP output failed alarm in my encoder output.
    By venkat.21 in forum Live Streaming and Encoders
    Replies: 2
    Last Post: 02-23-2015, 07:37 AM
  2. Controlling HLS Media Chunks Naming
    By rubin.gerovski in forum Server-side Modules and Code Samples Discussion
    Replies: 3
    Last Post: 12-28-2013, 09:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •