I’m running Debian on a VPS server, and have both the development and production code and database on the same server.
Is it possible to get the server to log only the errors for the development part of the server, and not the production. Right now, there are so many errors being logged from the production side, which makes it hard to get to the development errors.
Although this really belongs on serverfault.com:
You should definitely always log all errors.
If you host for example 2 domains on your server, example.com and test.example.com you can specify for each virtual host where you want to store the logs.
On apache your virtual hosts could look like:
So you can easily distinguish log information for
test.example.comfromexample.com.