Added support for simple logging for debug release only.