Update Logs.php

updated $mode to $format