Add calling class and function information in logs

Issue #1634 
Add the name of the class and function where a Log::write is called into log messages.

Old log message format:
2013-01-22 23:03:34 ERROR - Error message

New log message format:
2013-01-22 23:03:34 ERROR - ClassName::function_name - Error message