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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle
org.apache.logging.log4j.core.LifeCycle.State
-
Field Summary
Fields inherited from interface org.apache.logging.log4j.core.Appender
ELEMENT_TYPE
-
Constructor Summary
ConstructorDescriptionLog4jFileAppender
(org.apache.commons.vfs2.FileObject file) Log4jFileAppender
(org.apache.commons.vfs2.FileObject file, boolean append) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilter
(org.apache.logging.log4j.core.Filter filter) void
append
(org.apache.logging.log4j.core.LogEvent event) void
void
close()
org.apache.commons.vfs2.FileObject
getFile()
org.apache.logging.log4j.core.Filter
org.apache.logging.log4j.core.ErrorHandler
org.apache.logging.log4j.core.Layout
getName()
org.apache.logging.log4j.core.LifeCycle.State
getState()
boolean
void
boolean
boolean
boolean
void
setFilename
(org.apache.commons.vfs2.FileObject file) void
setFileOutputStream
(OutputStream fileOutputStream) void
setFilter
(org.apache.logging.log4j.core.Filter filter) void
setHandler
(org.apache.logging.log4j.core.ErrorHandler handler) void
setLayout
(org.apache.logging.log4j.core.Layout layout) void
void
start()
void
stop()
-
Constructor Details
-
Log4jFileAppender
- Throws:
IOException
-
Log4jFileAppender
public Log4jFileAppender(org.apache.commons.vfs2.FileObject file, boolean append) throws IOException - Throws:
IOException
-
-
Method Details
-
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:
append
in interfaceorg.apache.logging.log4j.core.Appender
-
setName
-
getName
- Specified by:
getName
in 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:
getLayout
in interfaceorg.apache.logging.log4j.core.Appender
-
ignoreExceptions
public boolean ignoreExceptions()- Specified by:
ignoreExceptions
in interfaceorg.apache.logging.log4j.core.Appender
-
getHandler
public org.apache.logging.log4j.core.ErrorHandler getHandler()- Specified by:
getHandler
in interfaceorg.apache.logging.log4j.core.Appender
-
setHandler
public void setHandler(org.apache.logging.log4j.core.ErrorHandler handler) - Specified by:
setHandler
in 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
-
setFileOutputStream
-
setFilter
public void setFilter(org.apache.logging.log4j.core.Filter filter) -
getState
public org.apache.logging.log4j.core.LifeCycle.State getState()- Specified by:
getState
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
initialize
public void initialize()- Specified by:
initialize
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
start
public void start()- Specified by:
start
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStarted
public boolean isStarted()- Specified by:
isStarted
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStopped
public boolean isStopped()- Specified by:
isStopped
in interfaceorg.apache.logging.log4j.core.LifeCycle
-