org.apache.hadoop.yarn
Class ContainerRollingLogAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.apache.log4j.WriterAppender
          extended by org.apache.log4j.FileAppender
              extended by org.apache.log4j.RollingFileAppender
                  extended by org.apache.hadoop.yarn.ContainerRollingLogAppender
All Implemented Interfaces:
Flushable, org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

@InterfaceAudience.Public
@InterfaceStability.Unstable
public class ContainerRollingLogAppender
extends org.apache.log4j.RollingFileAppender
implements Flushable

A simple log4j-appender for container's logs.


Field Summary
 
Fields inherited from class org.apache.log4j.RollingFileAppender
maxBackupIndex, maxFileSize
 
Fields inherited from class org.apache.log4j.FileAppender
bufferedIO, bufferSize, fileAppend, fileName
 
Fields inherited from class org.apache.log4j.WriterAppender
encoding, immediateFlush, qw
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
ContainerRollingLogAppender()
           
 
Method Summary
 void activateOptions()
           
 void flush()
           
 String getContainerLogDir()
          Getter/Setter methods for log4j.
 void setContainerLogDir(String containerLogDir)
           
 
Methods inherited from class org.apache.log4j.RollingFileAppender
getMaxBackupIndex, getMaximumFileSize, rollOver, setFile, setMaxBackupIndex, setMaxFileSize, setMaximumFileSize, setQWForFiles, subAppend
 
Methods inherited from class org.apache.log4j.FileAppender
closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile
 
Methods inherited from class org.apache.log4j.WriterAppender
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeader
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerRollingLogAppender

public ContainerRollingLogAppender()
Method Detail

activateOptions

public void activateOptions()
Specified by:
activateOptions in interface org.apache.log4j.spi.OptionHandler
Overrides:
activateOptions in class org.apache.log4j.FileAppender

flush

public void flush()
Specified by:
flush in interface Flushable

getContainerLogDir

public String getContainerLogDir()
Getter/Setter methods for log4j.


setContainerLogDir

public void setContainerLogDir(String containerLogDir)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.