Consolidate all error, warning and debug logging, and emit to stderr