Added class and function information to log messages based on where the log message was initiated.