New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instructions for setting up with Vapor web framework #68
Comments
Thanks for sharing this. |
See https://docs.vapor.codes/basics/logging/. Related issue: #68
I have released Puppy 0.6.0. |
Then I'm going to close this issue. |
Awesome! I'll do a post in the Vapor Discord to spread the word! |
There is a bit of a gap with Vapor logging to a file on the server. If you search logging in the Vapor Discord, there are quite a few people over the years asking for a way to log to a file and the answer is usually to use any swift-log backend (Vapor's logging is built on top of swift-log)... Unfortunately most of that list is only built for iOS or is too big a dependency to add for simple file logging. After some trial and error with different packages, Puppy was the package that was straight forward and just worked. This has been tested on Xcode 14.1 and Ubuntu 18.04.6 with no issues.
In a Vapor 4 project, add the following to your Sources/Run/main.swift file:
The text was updated successfully, but these errors were encountered: