add logger middle ware