org.oddjob.logging.log4j
Class LogoutType

java.lang.Object
  extended by org.oddjob.logging.log4j.LogoutType
All Implemented Interfaces:
ArooaValue, ValueFactory<OutputStream>

public class LogoutType
extends Object
implements ValueFactory<OutputStream>

Description

Provide an output to a logger. With a default Oddjob configuration log messages will be visible in the Log panel of Oddjob Explorer.

Example

Copy the contents of a file to the logger.
<oddjob id="this">
    <job>
        <copy>
            <input>
                <file file="${this.args[0]}/test/io/TestFile.txt"/>
            </input>
            <output>
                <logout/>
            </output>
        </copy>
    </job>
</oddjob>

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.oddjob.arooa.types.ValueFactory
ValueFactory.Conversions
 
Constructor Summary
LogoutType()
           
 
Method Summary
 String getLevel()
           
 String getLogger()
           
 void setLevel(String level)
           
 void setLogger(String logger)
           
 OutputStream toValue()
          Provide an instance of the type this is a factory for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogoutType

public LogoutType()
Method Detail

toValue

public OutputStream toValue()
                     throws ArooaConversionException
Description copied from interface: ValueFactory
Provide an instance of the type this is a factory for.

Specified by:
toValue in interface ValueFactory<OutputStream>
Returns:
An instance of the type. May be null.
Throws:
ArooaConversionException - If unable to provide a value.

getLogger

public String getLogger()

setLogger

public void setLogger(String logger)

getLevel

public String getLevel()

setLevel

public void setLevel(String level)