Ruby has a nice logging function,

Update once example of rotating logs finished