org.apache.avalon.composition.logging.impl
Class FileTargetProvider

java.lang.Object
  extended byorg.apache.avalon.composition.logging.TargetProvider
      extended byorg.apache.avalon.composition.logging.impl.FileTargetProvider
All Implemented Interfaces:
Serializable

public class FileTargetProvider
extends TargetProvider

File target provider descriptor declares the criteria for creation of an file based logging target.

XML

A file target element may be contained within a target element to declare the target as a file based logging sink.

    <target name="kernel">
       <file location="kernel.log" />
    </target>
 

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/24 09:31:50 $
Author:
Avalon Development Team
See Also:
TargetProvider, Serialized Form

Constructor Summary
FileTargetProvider(String location)
          Creation of a new file target.
 
Method Summary
 String getLocation()
          Return the filename of the logging target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTargetProvider

public FileTargetProvider(String location)
Creation of a new file target.

Parameters:
location - the filename of the logging destination
Method Detail

getLocation

public String getLocation()
Return the filename of the logging target.

Returns:
the filename


Copyright © Apache Software Foundation. All Rights Reserved.