Added support for stderr logging.
Fixed logPrefix support for empty prefix.