Initial commit for log-rotation & redirection to file:///

actually `p.output` is a `io.WriteCloser`. We need to be able to call `Close()`on it if it's a file :  when we want to change the file we write to (if we 're doing logRedirection).