Use deprecated function's module logger instead of traits logger.
Merge pull request #60 from pankajp/deprecation-logging-fix

Use deprecated function's module logger instead of traits logger.