There's more…

If you have only a small number of errors in your log files, then it may be sufficient to run each log file through grep to find errors:

user@dbhost: $ egrep "FATAL|ERROR" /var/log/postgres.log