org.lsc.utils.output
Class CsvLayout

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
          extended by org.lsc.utils.output.CsvLayout
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 CsvLayout
extends ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>

Author:
Rémy-Christophe Schermesser <remy-christophe@schermesser.com>

Constructor Summary
CsvLayout()
           
 
Method Summary
 String doLayout(ch.qos.logback.classic.spi.ILoggingEvent event)
          Output log events in CSV format for the JndiModifications class WARN : We only write the first value of each attribute because we write in a 2 dimensional format
 String getHeader()
           
 void setAttrs(String attrs)
           
 void setLogOperation(String logOperations)
          Deprecated. Use setLogOperations(java.lang.String)
 void setLogOperations(String logOperations)
           
 void setOutputHeader(Boolean outputHeader)
           
 void setSeparator(String separator)
           
 void setTaskNames(String taskNames)
           
 void start()
          Parse options
 
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, toString, wait, wait, wait
 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn
 

Constructor Detail

CsvLayout

public CsvLayout()
Method Detail

doLayout

public String doLayout(ch.qos.logback.classic.spi.ILoggingEvent event)
Output log events in CSV format for the JndiModifications class WARN : We only write the first value of each attribute because we write in a 2 dimensional format

Parameters:
event - ILoggingEvent object representing an event to log
Returns:
The String to log

getHeader

public String getHeader()

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.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>

setLogOperation

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

Parameters:
logOperations - the logOperation to set

setLogOperations

public void setLogOperations(String logOperations)
Parameters:
logOperations - the logOperation to set

setAttrs

public void setAttrs(String attrs)
Parameters:
attrs - the attrs to set

setSeparator

public void setSeparator(String separator)
Parameters:
separator - the separator to set

setTaskNames

public void setTaskNames(String taskNames)
Parameters:
taskNames - the taskNames to set

setOutputHeader

public void setOutputHeader(Boolean outputHeader)
Parameters:
outputHeader - the outputHeader to set


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