Added log message factory implementation