Write log to cerr instead of cout