org.springframework.flex.core
Class CommonsLoggingTarget

java.lang.Object
  extended by flex.messaging.log.AbstractTarget
      extended by org.springframework.flex.core.CommonsLoggingTarget
All Implemented Interfaces:
flex.messaging.log.Target

public class CommonsLoggingTarget
extends flex.messaging.log.AbstractTarget

BlazeDS Logging target that logs messages using standard apache commons-logging. Configuration: services-config.xml

  <logging>
      <target class="org.springframework.flex.core.CommonsLoggingTarget" level="All">
        <properties>
                <categoryPrefix>blazeds</categoryPrefix>
        </properties>
      </target>
  </logging>
 
Underlying Logger Configuration (e.g. log4j.xml)
 <logger name="blazeds" additivity="false">
      <level value="DEBUG" />
  </logger>
 
Following Categories are available in BlazeDS/LCDS:

Author:
Isaac Levin

Field Summary
protected  java.lang.String categoryPrefix
           
 
Fields inherited from class flex.messaging.log.AbstractTarget
filters, id, level, loggerCount
 
Constructor Summary
CommonsLoggingTarget()
           
 
Method Summary
 void initialize(java.lang.String id, flex.messaging.config.ConfigMap properties)
           
 void logEvent(flex.messaging.log.LogEvent logevent)
           
 
Methods inherited from class flex.messaging.log.AbstractTarget
addFilter, addLogger, containsFilter, getFilters, getId, getLevel, removeFilter, removeLogger, setFilters, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categoryPrefix

protected java.lang.String categoryPrefix
Constructor Detail

CommonsLoggingTarget

public CommonsLoggingTarget()
Method Detail

initialize

public void initialize(java.lang.String id,
                       flex.messaging.config.ConfigMap properties)
Specified by:
initialize in interface flex.messaging.log.Target
Overrides:
initialize in class flex.messaging.log.AbstractTarget

logEvent

public void logEvent(flex.messaging.log.LogEvent logevent)