Securityisue

Hallo everyone,
I have a question about security. Since its not the best idea to give out any information about my system to anybody, I wondered if there is a good way to prevent piwik from outputting the whole phpstack everytime there is an error. Can I send the error output to some logfile instead of displaying it on the screen?
greetings
davud