Adapt logging for server stats

Use logging module to write stats in a rotate file, ensure signal are
always received and that main app log does not receive stats info.