<p>I want such a rollingFileAppneder:</p><p>Before appending new line to the current log file, the logger will check: if there is any same line in the current log file, it will not write the same content to the file.</p><p><br></p><p>I can not find such a file appender, so I want to customize it:<br></p><p><br></p><p>Firstly, I want to create a class extends the RollingFileAppneder, but I find that the field which point to current file in RollingFileAppneder is "friendly", I can not get the field in my own class.</p><p><br></p><p>There is an stupid option: I copy all the codes in the RollingFileAppneder, and changed some logic in the append part. </p><p><br></p><p>Is there a elgant way to get such a unique content rollingFileAppender?<br></p><p><br></p><p><br></p><p><br></p>