org.lsc.utils.output
Class CsvLayout
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
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>
| 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 interface ch.qos.logback.core.spi.ContextAware |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn |
CsvLayout
public CsvLayout()
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.