com.omertron.themoviedbapi.tools
Class FilteringLayout

java.lang.Object
  extended by org.apache.log4j.Layout
      extended by org.apache.log4j.PatternLayout
          extended by com.omertron.themoviedbapi.tools.FilteringLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class FilteringLayout
extends org.apache.log4j.PatternLayout

Log4J Filtering routine to remove API keys from the output

Author:
Stuart.Boston

Field Summary
 
Fields inherited from class org.apache.log4j.PatternLayout
BUF_SIZE, DEFAULT_CONVERSION_PATTERN, MAX_CAPACITY, TTCC_CONVERSION_PATTERN
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
FilteringLayout()
           
 
Method Summary
static void addReplacementString(String replacementString)
          Add the string to replace in the log output
 String format(org.apache.log4j.spi.LoggingEvent event)
          Extend the format to remove the API_KEYS from the output
 
Methods inherited from class org.apache.log4j.PatternLayout
activateOptions, createPatternParser, getConversionPattern, ignoresThrowable, setConversionPattern
 
Methods inherited from class org.apache.log4j.Layout
getContentType, getFooter, getHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteringLayout

public FilteringLayout()
Method Detail

addReplacementString

public static void addReplacementString(String replacementString)
Add the string to replace in the log output

Parameters:
replacementString -

format

public String format(org.apache.log4j.spi.LoggingEvent event)
Extend the format to remove the API_KEYS from the output

Overrides:
format in class org.apache.log4j.PatternLayout
Parameters:
event -


Copyright © 2012-2013. All Rights Reserved.