INNER CODE UNIT · Python
SharedCommand
unrealcv/unrealcv · client/python/unrealcv/__init__.py:34
class SharedCommand(str):
"""A command string carrying the legacy response format for shared data."""
def __new__(cls, command, response_format):
value = super().__new__(cls, command)
value.response_format = response_format
return value
_L = logging.getLogger(__name__)
# _L.addHandler(logging.NullHandler()) # Let client to decide how to do logging
_L.handlers = []
h = logging.StreamHandler()
h.setFormatter(logging.Formatter('%(levelname)s:%(module)s:%(lineno)d:%(message)s'))
_L.addHandler(h)
_L.propagate = False
_L.setLevel(logging.INFO)