Pipe stdin to a logfile with optional log rotation parameters