ERT-711: Added copyright header and c++ guard.
ERT-711: Made return value 'const char *'
ERT-711: Removed unused variable
ERT-711: Made global log handle variable static