FileOutputLogTarget (LogKit API)
Keywords: org.apache.log.output.FileOutputLogTarget,FileOutputLogTarget class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.log.output
Class FileOutputLogTarget

    java.lang.Object
      |
      +--org.apache.log.output.AbstractTarget
            |
            +--org.apache.log.output.AbstractOutputTarget
                  |
                  +--org.apache.log.output.io.WriterTarget
                        |
                        +--org.apache.log.output.DefaultOutputLogTarget
                              |
                              +--org.apache.log.output.FileOutputLogTarget

All Implemented Interfaces:
  ErrorAware, LogTarget

Deprecated. Use org.apache.log.output.io.FileTarget as this class is not thread safe

public class FileOutputLogTarget
extends DefaultOutputLogTarget

This is a basic Output log target that writes to a file.

Author:
  Peter Donald, Stephen McConnell

Field Summary

Fields inherited from class org.apache.log.output.io.WriterTarget
`m_output`

Fields inherited from class org.apache.log.output.AbstractOutputTarget
`m_formatter`

Constructor Summary
`FileOutputLogTarget()` Deprecated.
`FileOutputLogTarget(String filename)` Deprecated.
`FileOutputLogTarget(String filename, boolean append)` Deprecated.

Method Summary
`void` | `setAppend(boolean append)` Deprecated.
`void` | `setFilename(String filename)` Deprecated. Overwrites the m_output value in the super class through assignment of an OutputStreamWriter based on a supplied file path.

Methods inherited from class org.apache.log.output.DefaultOutputLogTarget
`initPattern, setFormat`

Methods inherited from class org.apache.log.output.io.WriterTarget
`close, setWriter, shutdownWriter, write`

Methods inherited from class org.apache.log.output.AbstractOutputTarget
`doProcessEvent, getFormatter, open, output, setFormatter`

Methods inherited from class org.apache.log.output.AbstractTarget
`error, getErrorHandler, isOpen, processEvent, setErrorHandler`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FileOutputLogTarget

    public FileOutputLogTarget()

  Deprecated.

### FileOutputLogTarget

    public FileOutputLogTarget(String filename)
                        throws IOException

  Deprecated.

### FileOutputLogTarget

    public FileOutputLogTarget(String filename,
                               boolean append)
                        throws IOException

  Deprecated.

Method Detail

### setAppend

    public void setAppend(boolean append)

  Deprecated.

### setFilename

    public void setFilename(String filename)
                     throws IOException

  Deprecated.
  Overwrites the m_output value in the super class through assignment of an OutputStreamWriter based on a supplied file path. Side-effects include the creation of a directory path based relative to the supplied filename.

  Parameters:
    `filename` - path and filename for log destination
    `IOException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001 Apache Jakarta Project. All Rights Reserved.