org.lsc.utils.output
Class LdifLayout

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.LayoutBase<E>
          extended by ch.qos.logback.core.pattern.PatternLayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
              extended by ch.qos.logback.classic.PatternLayout
                  extended by org.lsc.utils.output.LdifLayout
All Implemented Interfaces:
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle

public class LdifLayout
extends ch.qos.logback.classic.PatternLayout

Provides a localized logback layout for LDAP entries.

Author:
Sebastien Bahloul <seb@lsc-project.org>

Field Summary
 
Fields inherited from class ch.qos.logback.classic.PatternLayout
defaultConverterMap
 
Constructor Summary
LdifLayout()
           
 
Method Summary
 String doLayout(ch.qos.logback.classic.spi.ILoggingEvent le)
          Format the logging event.
 void setLogOperation(String logOperation)
          Deprecated. Use setLogOperations(java.lang.String)
 void setLogOperations(String logOperations)
           
 void setOnlyLdif(boolean onlyLdif)
           
 void start()
          Parse options
 
Methods inherited from class ch.qos.logback.classic.PatternLayout
getDefaultConverterMap
 
Methods inherited from class ch.qos.logback.core.pattern.PatternLayoutBase
getEffectiveConverterMap, getInstanceConverterMap, getPattern, setPattern, setPostCompileProcessor, toString
 
Methods inherited from class ch.qos.logback.core.LayoutBase
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getStatusManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn
 

Constructor Detail

LdifLayout

public LdifLayout()
Method Detail

doLayout

public final String doLayout(ch.qos.logback.classic.spi.ILoggingEvent le)
Format the logging event. This formatter will use the default formatter or a LDIF pretty printer

Specified by:
doLayout in interface ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>
Overrides:
doLayout in class ch.qos.logback.classic.PatternLayout
Parameters:
le - the logging event to format
Returns:
the formatted string

start

public void start()
Parse options

Specified by:
start in interface ch.qos.logback.core.spi.LifeCycle
Overrides:
start in class ch.qos.logback.core.pattern.PatternLayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>

setOnlyLdif

public void setOnlyLdif(boolean onlyLdif)
Parameters:
onlyLdif - the onlyLdif to set

setLogOperation

@Deprecated
public void setLogOperation(String logOperation)
Deprecated. Use setLogOperations(java.lang.String)

Parameters:
logOperation - the logOperation to set

setLogOperations

public void setLogOperations(String logOperations)


Copyright © 2005-2010 LSC project. All Rights Reserved.