Logging module is improved.

stack backtrace is used