def _LogRecord_msg():
    """
    Overrides logging.LogRecord.msg attribute to ensure variable content is stored as unicode.
    """

    def _LogRecord_msgProperty(self):
        return self.__msg

    def _LogRecord_msgSetter(self, value):
        self.__msg = to_unicode(value)

    logging.LogRecord.msg = property(_LogRecord_msgProperty, _LogRecord_msgSetter)