

package gov.va.med.cds.util;


//import org.apache.log4j.RollingFileAppender;
//import org.apache.logging.log4j.core.appender.RollingFileAppender;

import java.io.File;


/** This class facilitates a single header at the top of the target log file. The writeHeader method is overridden to 
 *  ensure the Header is written once and only once at the very top of a log file.  This class supports the CDS3.x PerformanceLog.  
 *  Without this overridden implementation, the header will be re-written each time the appender is initialized. With this
 *  implementation, the header will be written only once at the very top of the log file.   
 *   
 * @author DNS   shellb
 *
 */
public class HeaderOnlyAtTopRollingFileAppender
    //extends RollingFileAppender
{

    //@Override
    protected void writeHeader( )
    {
        //File f = new File( getFile() );
        //if ( f.length() == 0 )
        //{
            //qw.write( getLayout().getHeader() );
        //}
    }
}
