fixed log to logs in ruby