Class Log4jFileAppender
- java.lang.Object
-
- org.pentaho.di.core.logging.log4j.Log4jFileAppender
-
- All Implemented Interfaces:
org.apache.logging.log4j.core.Appender,org.apache.logging.log4j.core.LifeCycle
public class Log4jFileAppender extends Object implements org.apache.logging.log4j.core.Appender
-
-
Constructor Summary
Constructors Constructor Description Log4jFileAppender(org.apache.commons.vfs2.FileObject file)Log4jFileAppender(org.apache.commons.vfs2.FileObject file, boolean append)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(org.apache.logging.log4j.core.Filter filter)voidappend(org.apache.logging.log4j.core.LogEvent event)voidclearFilters()voidclose()org.apache.commons.vfs2.FileObjectgetFile()OutputStreamgetFileOutputStream()org.apache.logging.log4j.core.FiltergetFilter()org.apache.logging.log4j.core.ErrorHandlergetHandler()org.apache.logging.log4j.core.LayoutgetLayout()StringgetName()org.apache.logging.log4j.core.LifeCycle.StategetState()booleanignoreExceptions()voidinitialize()booleanisStarted()booleanisStopped()booleanrequiresLayout()voidsetFilename(org.apache.commons.vfs2.FileObject file)voidsetFileOutputStream(OutputStream fileOutputStream)voidsetFilter(org.apache.logging.log4j.core.Filter filter)voidsetHandler(org.apache.logging.log4j.core.ErrorHandler handler)voidsetLayout(org.apache.logging.log4j.core.Layout layout)voidsetName(String name)voidstart()voidstop()
-
-
-
Constructor Detail
-
Log4jFileAppender
public Log4jFileAppender(org.apache.commons.vfs2.FileObject file) throws IOException- Throws:
IOException
-
Log4jFileAppender
public Log4jFileAppender(org.apache.commons.vfs2.FileObject file, boolean append) throws IOException- Throws:
IOException
-
-
Method Detail
-
addFilter
public void addFilter(org.apache.logging.log4j.core.Filter filter)
-
getFilter
public org.apache.logging.log4j.core.Filter getFilter()
-
clearFilters
public void clearFilters()
-
close
public void close()
-
append
public void append(org.apache.logging.log4j.core.LogEvent event)
- Specified by:
appendin interfaceorg.apache.logging.log4j.core.Appender
-
setName
public void setName(String name)
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.apache.logging.log4j.core.Appender
-
setLayout
public void setLayout(org.apache.logging.log4j.core.Layout layout)
-
getLayout
public org.apache.logging.log4j.core.Layout getLayout()
- Specified by:
getLayoutin interfaceorg.apache.logging.log4j.core.Appender
-
ignoreExceptions
public boolean ignoreExceptions()
- Specified by:
ignoreExceptionsin interfaceorg.apache.logging.log4j.core.Appender
-
getHandler
public org.apache.logging.log4j.core.ErrorHandler getHandler()
- Specified by:
getHandlerin interfaceorg.apache.logging.log4j.core.Appender
-
setHandler
public void setHandler(org.apache.logging.log4j.core.ErrorHandler handler)
- Specified by:
setHandlerin interfaceorg.apache.logging.log4j.core.Appender
-
requiresLayout
public boolean requiresLayout()
-
getFile
public org.apache.commons.vfs2.FileObject getFile()
-
setFilename
public void setFilename(org.apache.commons.vfs2.FileObject file)
-
getFileOutputStream
public OutputStream getFileOutputStream()
-
setFileOutputStream
public void setFileOutputStream(OutputStream fileOutputStream)
-
setFilter
public void setFilter(org.apache.logging.log4j.core.Filter filter)
-
getState
public org.apache.logging.log4j.core.LifeCycle.State getState()
- Specified by:
getStatein interfaceorg.apache.logging.log4j.core.LifeCycle
-
initialize
public void initialize()
- Specified by:
initializein interfaceorg.apache.logging.log4j.core.LifeCycle
-
start
public void start()
- Specified by:
startin interfaceorg.apache.logging.log4j.core.LifeCycle
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStopped
public boolean isStopped()
- Specified by:
isStoppedin interfaceorg.apache.logging.log4j.core.LifeCycle
-
-