Server-side logging using BlazeDS API

  1. Configuring server-side logging

    Configure server-side logging in the logging section of the Flex services-config.xml configuration file. After you edit services-config.xml, restart the BlazeDS server.

    The following example shows a configuration that sets the logging level to Debug:

  2. <logging>
        <target class="flex.messaging.log.ConsoleTarget" level="Debug">
            <properties>
                <prefix>[BlazeDS]</prefix>
                <includeDate>true</includeDate>
                <includeTime>true</includeTime>
                <includeLevel>true</includeLevel>
                <includeCategory>true</includeCategory>
            </properties>
            <filters>
                <pattern>Endpoint.*</pattern>
                <pattern>Service.*</pattern>
                <pattern>Configuration</pattern>
  3.             <pattern>Client.*</pattern>
            </filters>
        </target>
    </logging>



The available levels include All, Debug, Error, Info, None, and Warn.



you can specify flex.messaging.log.ConsoleTarget (default) to log

messages to the standard output,or the flex.messaging.log.ServletLogTarget 
to log messages to the default logging mechanism for servlets for 
your application server.

 


  1. Thanks
  2. Neeraj

0 comments: