list logs in an directory