def msg_warn(message):
    """
    Log a warning message

    :param message: the message to be logged
    """
    to_stdout(" (!) {message}".format(message=message),
              colorf=yellow, bold=True)
    if _logger:
        _logger.warn(message)
def msg_warn ( message ) : to_stdout ( " (!) {message}" . format ( message = message ) , colorf = yellow , bold = True ) if _logger : _logger . warn ( message )
Log a warning message

    :param message: the message to be logged