def log_err(errmsg):
    """
    Prints/logs an error message to the server log.

    Args:
        errormsg (str): The message to be logged.

    """
    try:
        errmsg = str(errmsg)
    except Exception as e:
        errmsg = str(e)
    for line in errmsg.splitlines():
        log.msg('[EE] %s' % line)
    #log.err('ERROR: %s' % (errormsg,))
dataset/ETHPy150Open evennia/evennia/evennia/utils/logger.py/log_err/original