http://bugzilla.qos.ch/show_bug.cgi?id=137





------- Comment #1 from [EMAIL PROTECTED]  2008-03-20 16:44 -------
This subclass does the trick, but an option in FileAppender would be much
better (I used RollingFileAppender because this is what I needed in my
project):

public class DirectoryCreateRollingFileAppender<E> extends
RollingFileAppender<E>
{
    @Override
    public synchronized void setFile() throws IOException
    {
        // create parent directories as needed
        new File( fileName ).getParentFile().mkdirs();

        // then proceed as usual
        super.setFile();
    }
}


-- 
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
logback-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-dev

Reply via email to