Updated Logger.php to make constructor accept Traversable objects