jPOS 1.6.7 API Documentation

org.jpos.util
Class FSDProtectedLogListener

java.lang.Object
  extended by org.jpos.util.FSDProtectedLogListener
All Implemented Interfaces:
java.util.EventListener, Configurable, LogListener

public class FSDProtectedLogListener
extends java.lang.Object
implements LogListener, Configurable

Protects selected fields from LogEvents. FSDProtectedLogListener acts like a filter for Event logs, it should be defined _before_ other standard LogListeners such as SimpleLogListener or RotateLogListeners. It is based upon the ProtectedLogListener
i.e.

 
   
   
     
     
     
   
   
     
     
     
     
   
 
 
Order is important. In the previous example SimpleLogListener will dump unprotected LogEvents while RotateLogListener will dump protected ones (for selected fields)

Since:
jPOS 1.6.5
Version:
$Revision: 2877 $
Author:
Alejandro P. Revilla, Dave Bergert
See Also:
Configurable

Field Summary
static byte[] BINARY_WIPED
           
static java.lang.String WIPED
           
 
Constructor Summary
FSDProtectedLogListener()
           
 
Method Summary
 LogEvent log(LogEvent ev)
           
 void setConfiguration(Configuration cfg)
          Configure this FSDProtectedLogListener
Properties:
[protect] blank separated list of fields to be protected [wipe] blank separated list of fields to be wiped [truncate] blank separated list of fields:length to be truncated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIPED

public static final java.lang.String WIPED
See Also:
Constant Field Values

BINARY_WIPED

public static final byte[] BINARY_WIPED
Constructor Detail

FSDProtectedLogListener

public FSDProtectedLogListener()
Method Detail

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Configure this FSDProtectedLogListener
Properties:

Specified by:
setConfiguration in interface Configurable
Parameters:
cfg - Configuration
Throws:
ConfigurationException

log

public LogEvent log(LogEvent ev)
Specified by:
log in interface LogListener

jPOS.org