Spring BlazeDS Integration

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:
Target

public class CommonsLoggingTarget
extends 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)
 <log name="blazeds" additivity="false">
      <level value="DEBUG" />
  </log>
 
Following Categories are available in BlazeDS/LCDS:

Author:
Isaac Levin

Field Summary
protected  String categoryPrefix
           
 
Fields inherited from class flex.messaging.log.AbstractTarget
filters, id, level, loggerCount
 
Constructor Summary
CommonsLoggingTarget()
           
 
Method Summary
 void initialize(String id, ConfigMap properties)
           
 void logEvent(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 String categoryPrefix
Constructor Detail

CommonsLoggingTarget

public CommonsLoggingTarget()
Method Detail

initialize

public void initialize(String id,
                       ConfigMap properties)
Specified by:
initialize in interface Target
Overrides:
initialize in class AbstractTarget

logEvent

public void logEvent(LogEvent logevent)

Spring BlazeDS Integration

Copyright © 2011. All Rights Reserved.