Allowing to save log to a file.

Should help our only user obtain his logs.
Also cleaning up the ping outputs from the logs.