simple logger with rotation mechanism