How to output swift-log library logs to a separate file in a swift app

I am currently using swift-log library to output the logs in my application. swift-log -> https://github.com/apple/swift-log Is there a way to write these logs to a file in the same time they comes in console?(like at the end of the day we can see all the log using that created file)