org.jpos.util
Class ProtectedLogListener

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

public class ProtectedLogListener
extends Object
implements LogListener, Configurable

Protects selected fields from LogEvents. ProtectedLogListener acts like a filter for Event logs, it should be defined _before_ other standard LogListeners such as SimpleLogListener or RotateLogListeners.
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.3.3
Version:
$Revision$ $Date$
Author:
Alejandro P. Revilla
See Also:
Configurable

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

Field Detail

WIPED

public static final String WIPED
See Also:
Constant Field Values

BINARY_WIPED

public static final byte[] BINARY_WIPED
Constructor Detail

ProtectedLogListener

public ProtectedLogListener()
Method Detail

setConfiguration

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

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

log

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


Copyright © 1998-2012 jPOS.org. All Rights Reserved.