Php class, writing logs and archives them daily.