Rename debug.log to error.log

That's what the file is actually used for. Also add a warning in the
Javadoc to avoid flooding the log with debug messages.