ServletOutputLogTarget (LogKit API)
Keywords: org.apache.log.output.ServletOutputLogTarget,ServletOutputLogTarget 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 ServletOutputLogTarget

    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.ServletOutputLogTarget

All Implemented Interfaces:
  ErrorAware, LogTarget

public class ServletOutputLogTarget
extends DefaultOutputLogTarget

Generic logging interface. Implementations are based on the strategy pattern.

Author:
  Tommy Santoso

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
`ServletOutputLogTarget(ServletContext context)` Constructor.

Method Summary
`void` | `close()` Shutdown target.
`protected void` | `write(String message)` Logs message to servlet context log file

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

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

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

### ServletOutputLogTarget

    public ServletOutputLogTarget(ServletContext context)

  Constructor.

Parameters:
  `context` - ServletContext to use for logging.

Method Detail

### write

    protected void write(String message)

  Logs message to servlet context log file

  Overrides:
    `write` in class `WriterTarget`
  Parameters:
    `message` - message to log to servlet context log file.

### close

    public void close()

  Shutdown target. Attempting to write to target after close() will cause errors to be logged.

  Overrides:
    `close` in class `WriterTarget`

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.