org.exolab.castor.persist

Class OutputLogInterceptor

Implemented Interfaces:
LogInterceptor

public class OutputLogInterceptor
extends java.lang.Object
implements LogInterceptor

A simple log interceptor that reports all messages to a writer or an output stream.
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:46 $
Author:
Assaf Arkin

Constructor Summary

OutputLogInterceptor(OutputStream output)
OutputLogInterceptor(PrintWriter writer)
OutputLogInterceptor(Writer writer)

Method Summary

void
creating(Object objClass, Object identity)
void
exception(Exception except)
PrintWriter
getPrintWriter()
void
loading(Object objClass, Object identity)
void
message(String message)
void
queryStatement(String statement)
void
removing(Object objClass, Object identity)
void
storeStatement(String statement)
void
storing(Object objClass, Object identity)

Constructor Details

OutputLogInterceptor

public OutputLogInterceptor(OutputStream output)

OutputLogInterceptor

public OutputLogInterceptor(PrintWriter writer)

OutputLogInterceptor

public OutputLogInterceptor(Writer writer)

Method Details

creating

public void creating(Object objClass,
                     Object identity)
Specified by:
creating in interface LogInterceptor

exception

public void exception(Exception except)
Specified by:
exception in interface LogInterceptor

getPrintWriter

public PrintWriter getPrintWriter()
Specified by:
getPrintWriter in interface LogInterceptor

loading

public void loading(Object objClass,
                    Object identity)
Specified by:
loading in interface LogInterceptor

message

public void message(String message)
Specified by:
message in interface LogInterceptor

queryStatement

public void queryStatement(String statement)
Specified by:
queryStatement in interface LogInterceptor

removing

public void removing(Object objClass,
                     Object identity)
Specified by:
removing in interface LogInterceptor

storeStatement

public void storeStatement(String statement)
Specified by:
storeStatement in interface LogInterceptor

storing

public void storing(Object objClass,
                    Object identity)
Specified by:
storing in interface LogInterceptor

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com