file log writer with rotation